URL:
<http://savannah.nongnu.org/patch/?7035>
Summary: dependence on host byte order (endianity)
Project: Simulavr: an AVR simulator
Submitted by: petrh
Submitted on: Sun 20 Dec 2009 10:09:46 PM CET
Category: bug fix
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Component Version: simulavrxx
_______________________________________________________
Details:
The problem was in casting
unsigned char * Memory::myMemory
to word which depends on host's integer byte order, the code did not work on
big-endian machines.
I rewrote the cast to bit shifts and moved the conversions to new
Flash::GetWord().
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 20 Dec 2009 10:09:46 PM CET Name: 845-byte-order.patch Size: 702B
By: petrh
<http://savannah.nongnu.org/patch/download.php?file_id=19318>
-------------------------------------------------------
Date: Sun 20 Dec 2009 10:09:46 PM CET Name: 855-byte-order.patch Size: 1kB
By: petrh
<http://savannah.nongnu.org/patch/download.php?file_id=19317>
-------------------------------------------------------
Date: Sun 20 Dec 2009 10:09:46 PM CET Name: 844-byte-order.patch Size: 4kB
By: petrh
<http://savannah.nongnu.org/patch/download.php?file_id=19316>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?7035>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
Simulavr-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/simulavr-devel