Thu Oct 31 19:13:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>

* interp.c (sim_fetch_register, sim_store_register): Fix bug where
	updating the accumulators was overwriting other parts of the global
	State variable.
This commit is contained in:
Martin Hunt 1996-11-01 03:15:44 +00:00
parent fbc3fbe587
commit 5c839c675a
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
Thu Oct 31 19:13:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* interp.c (sim_fetch_register, sim_store_register): Fix bug where
updating the accumulators was overwriting other parts of the global
State variable.
Wed Oct 30 17:35:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* interp.c (bfd.h) Don't include it here any more.

View File

@ -829,7 +829,7 @@ sim_fetch_register (rn, memory)
init_system();
if (rn > 34)
WRITE_64 (memory, State.a[rn-32]);
WRITE_64 (memory, State.a[rn-35]);
else if (rn == 32)
WRITE_16 (memory, IMAP0);
else if (rn == 33)
@ -849,7 +849,7 @@ sim_store_register (rn, memory)
init_system();
if (rn > 34)
State.a[rn-32] = READ_64 (memory) & MASK40;
State.a[rn-35] = READ_64 (memory) & MASK40;
else if (rn == 34)
SET_DMAP( READ_16(memory) );
else if (rn == 33)