* m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
authorStephane Carrez <stcarrez@nerim.fr>
Tue, 13 Aug 2002 17:24:50 +0000 (17:24 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Tue, 13 Aug 2002 17:24:50 +0000 (17:24 +0000)
commit548bcbeca813f4c010178d1f8bb6b63b1f6de409
treebefd5862a945741dd3cfadc1cacb2621910ccf64
parent7df11f59811c830ac11cbd15a5483c8384dabf87
* m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
(M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
(m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
real PC and the page number (if it's within the memory bank window).
(m68hc11_pseudo_register_write): Likewise when saving.
(m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
(m68hc11_register_virtual_type): Return uint32 for virtual pc.
(m68hc11_register_raw_size): And use 32-bit for it.
(m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
16K memory bank is used by the prog; also use the virtual pc.
gdb/ChangeLog
gdb/m68hc11-tdep.c