diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-05-27 06:48:20 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-05-27 06:48:20 +0000 |
commit | 2f2e6c5d5bf76a01caa0d2da27ac21e45ee2276e (patch) | |
tree | e423d11adc8c988ab292d78c6e7a592064ac5ead /sim/common/sim-n-core.h | |
parent | d82e4bf6cc9f6dfb853b2c9fa138b3640381fdf6 (diff) | |
download | binutils-gdb-2f2e6c5d5bf76a01caa0d2da27ac21e45ee2276e.tar.gz |
Extend xor-endian and per-cpu support in core module.
Allow negated test when watching value within core.
Diffstat (limited to 'sim/common/sim-n-core.h')
-rw-r--r-- | sim/common/sim-n-core.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sim/common/sim-n-core.h b/sim/common/sim-n-core.h index a0570e1f7cf..614a32f5a8d 100644 --- a/sim/common/sim-n-core.h +++ b/sim/common/sim-n-core.h @@ -43,7 +43,7 @@ sim_core_read_aligned_N(sim_cpu *cpu, unsigned_word xaddr) { sim_cpu_core *cpu_core = CPU_CORE (cpu); - sim_core *core = &cpu_core->common; + sim_core_common *core = &cpu_core->common; unsigned_N val; sim_core_mapping *mapping; address_word addr; @@ -106,8 +106,8 @@ sim_core_read_unaligned_N(sim_cpu *cpu, case NONSTRICT_ALIGNMENT: { unsigned_N val; - if (sim_core_read_buffer (CPU_STATE (cpu), map, &val, addr, - sizeof(unsigned_N)) + if (sim_core_xor_read_buffer (CPU_STATE (cpu), cpu, map, &val, addr, + sizeof(unsigned_N)) != sizeof(unsigned_N)) SIM_CORE_SIGNAL (CPU_STATE (cpu), cpu, cia, map, sizeof (unsigned_N), addr, @@ -139,7 +139,7 @@ sim_core_write_aligned_N(sim_cpu *cpu, unsigned_N val) { sim_cpu_core *cpu_core = CPU_CORE (cpu); - sim_core *core = &cpu_core->common; + sim_core_common *core = &cpu_core->common; sim_core_mapping *mapping; address_word addr; if (WITH_XOR_ENDIAN) @@ -201,9 +201,9 @@ sim_core_write_unaligned_N(sim_cpu *cpu, break; case NONSTRICT_ALIGNMENT: { - val = T2H_N(val); - if (sim_core_write_buffer (CPU_STATE (cpu), map, &val, addr, - sizeof(unsigned_N)) + unsigned_N val = H2T_N (val); + if (sim_core_xor_write_buffer (CPU_STATE (cpu), cpu, map, &val, addr, + sizeof(unsigned_N)) != sizeof(unsigned_N)) SIM_CORE_SIGNAL (CPU_STATE (cpu), cpu, cia, map, sizeof (unsigned_N), addr, |