* sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
This commit is contained in:
parent
e5ce1670c1
commit
340d8e209e
2 changed files with 2 additions and 3 deletions
|
@ -3,6 +3,7 @@ Tue Nov 18 15:53:45 1997 Doug Evans <devans@canuck.cygnus.com>
|
|||
* Make-common.in (SIM_NEW_COMMON_OBJS): New variable.
|
||||
|
||||
* sim-base.h (CIA_ADDR): Provide default definition.
|
||||
* sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
|
||||
|
||||
Mon Nov 17 14:15:31 1997 Doug Evans <devans@seba.cygnus.com>
|
||||
|
||||
|
|
|
@ -108,9 +108,7 @@ sim_core_signal (SIM_DESC sd,
|
|||
sim_core_signals sig)
|
||||
{
|
||||
const char *copy = (transfer == read_transfer ? "read" : "write");
|
||||
/* The CIA could either be a struct or a simple type. Regardless,
|
||||
the address of the instruction is found in the first word. */
|
||||
address_word ip = *(address_word*)&cia;
|
||||
address_word ip = CIA_ADDR (cia);
|
||||
switch (sig)
|
||||
{
|
||||
case sim_core_unmapped_signal:
|
||||
|
|
Loading…
Add table
Reference in a new issue