* sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
[deliverable/binutils-gdb.git] / sim / common / sim-core.c
index c140dd64e2410c360065cdbe884dee29eb431921..82ba24582a7791acf0ae8aa4bb8d7f3b86bcb8ac 100644 (file)
@@ -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:
This page took 0.027373 seconds and 4 git commands to generate.