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]

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


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.

Where? Might as well fix the bug.


Andrew



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