[PATCH]: Set WITH_TARGET_ADDRESS_BITSIZE=32 for HC11/HC12 simulator

Stephane Carrez stcarrez@nerim.fr
Sun Mar 2 10:04:00 GMT 2003


Hi!

I committed this patch to switch the HC11/HC12 simulator to use 32-bit address representation
so that memory bank switching can be used.

There is a bug in sim/common where at various places we use a 'unsigned_word' instead
of 'address_word'.  Since for HC11 the 'unsigned_word' is 16-bit, this bug creates a truncation
of the 32-bit address to 16-bit.  I had to switch the simulator to use 32-bit until this
bug is fixed.

	Stephane

2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>

	* Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
	to 32 to support memory bank switching; temporarily use 32-bit for
	WORD_BITSIZE to avoid a bug in sim-common.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Makefile.in.diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20030302/5b88dbc8/attachment.ksh>


More information about the Gdb-patches mailing list