This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] for @aa:8 address simulation in GDB for H8


Hi,

The simulation of @aa:8 absolute addressing is broken in case of H8 targets.
This is because SBR register gets re-initialized to zero in init_pointers.
This patch removes initialization of CPU registers from init_pointers function as they
already get initialized in sim_state_initialize function.

Regards,
Asgari Jinia

-------------------- Start Of Patch --------------------------
..sim/h8300/ChangeLog

2003-12-04  Asgari Jinia  <asgarij@kpitcummins.com>
        * compile.c (init_pointers): Initialization of CPU regs removed as it is already initialized.



--- compile.old.c	Thu Jun 19 07:44:14 2003
+++ compile.c	Thu Dec  4 20:18:55 2003
@@ -1781,8 +1781,6 @@ init_pointers (SIM_DESC sd)
 
       h8_set_mask (sd, memory_size - 1);
 
-      memset (h8_get_reg_buf (sd), 0, sizeof (((STATE_CPU (sd, 0))->regs)));
-
       for (i = 0; i < 8; i++)
 	{
 	  /* FIXME: rewrite using local buffer.  */

-------------------- End Of Patch ----------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]