* sim-calls.c (sim_store_register): Allow accumulators
other than A0 to be modified. Correct error message.
This commit is contained in:
parent
28954a6eb3
commit
9e61ae7d3c
@ -1,3 +1,8 @@
|
||||
Fri Aug 8 21:52:27 1997 Mark Alexander <marka@cygnus.com>
|
||||
|
||||
* sim-calls.c (sim_store_register): Allow accumulators
|
||||
other than A0 to be modified. Correct error message.
|
||||
|
||||
Thu May 29 14:02:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
||||
|
||||
* misc.c (tic80_trace_fpu3, tic80_trace_fpu2, tic80_trace_fpu1,
|
||||
|
@ -202,10 +202,10 @@ sim_store_register (SIM_DESC sd, int regnr, unsigned char *buf)
|
||||
STATE_CPU (sd, 0)->cia.ip = T2H_4 (*(unsigned32*)buf);
|
||||
else if (regnr == NPC_REGNUM)
|
||||
STATE_CPU (sd, 0)->cia.dp = T2H_4 (*(unsigned32*)buf);
|
||||
else if (regnr == A0_REGNUM && regnr <= An_REGNUM)
|
||||
else if (regnr >= A0_REGNUM && regnr <= An_REGNUM)
|
||||
STATE_CPU (sd, 0)->acc[regnr - A0_REGNUM] = T2H_8 (*(unsigned64*)buf);
|
||||
else
|
||||
sim_io_error (sd, "sim_fetch_register - unknown register nr %d", regnr);
|
||||
sim_io_error (sd, "sim_store_register - unknown register nr %d", regnr);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user