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]

[RFA]: Remove space == 0 restriction in the simulator (dv-core)


Hi!

The simulator core device aborts if we try to attach some address
in a space map that is not 0. I'm using a non-zero space parameter in the 
68HC11 simulator. The space parameter is used to identify memory/io maps.

Since there is no reason for this restriction, I would like to remove it.

Can you approve this patch?

	Stephane

2000-11-26  Stephane Carrez  <Stephane.Carrez@worldnet.fr>

	* dv-core.c (dv_core_attach_address_callback): Don't abort if
	space is not zero.
Index: dv-core.c
===================================================================
RCS file: /cvs/src/src/sim/common/dv-core.c,v
retrieving revision 1.1.1.1
diff -p -r1.1.1.1 dv-core.c
*** dv-core.c	1999/04/16 01:34:56	1.1.1.1
--- dv-core.c	2000/11/26 11:25:40
*************** dv_core_attach_address_callback (struct 
*** 57,64 ****
    /* NOTE: At preset the space is assumed to be zero.  Perhaphs the
       space should be mapped onto something for instance: space0 -
       unified memory; space1 - IO memory; ... */
-   if (space != 0)
-     hw_abort (me, "Hey! Unknown space %d", space);
    sim_core_attach (hw_system (me),
  		   NULL, /*cpu*/
  		   level,
--- 57,62 ----

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