OSDN Git Service

* sim-main.h (phys_to_virt): Use memory bank parameters to translate
authorStephane Carrez <stcarrez@nerim.fr>
Fri, 8 Aug 2003 20:42:21 +0000 (20:42 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Fri, 8 Aug 2003 20:42:21 +0000 (20:42 +0000)
commitaf0164e8bbbd7e4b0d3310b26551cb223df5c767
treee2a11940f95499d3683d05335accfb558c997ad6
parent0761ec51000869860b83ccfbede77e7b2bbb873e
* sim-main.h (phys_to_virt): Use memory bank parameters to translate
the physical address in virtual address.
(struct _sim_cpu): Add memory bank members.
* m68hc11_sim.c (cpu_initialize): Clear memory bank parameters.
* interp.c (sim_hw_configure): Create memory bank according to memory
bank parameters.
(sim_get_bank_parameters): New function to obtain memory bank config
from the symbol table.
(sim_prepare_for_program): Call it to obtain the memory bank parameters.
(sim_open): Call sim_prepare_for_program.
* dv-m68hc11.c (m68hc11cpu_io_write_buffer): Use memory bank parameters
to check if address is within bank window.
(m68hc11cpu_io_read_buffer): Likewise.
(attach_m68hc11_regs): Map the memory bank according to memory bank
parameters.
sim/m68hc11/ChangeLog
sim/m68hc11/dv-m68hc11.c
sim/m68hc11/interp.c
sim/m68hc11/m68hc11_sim.c
sim/m68hc11/sim-main.h