[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Simulavr-devel] [patch #7035] dependence on host byte order (endianity)
From: |
Petr Hluzin |
Subject: |
[Simulavr-devel] [patch #7035] dependence on host byte order (endianity) |
Date: |
Sun, 20 Dec 2009 21:09:47 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 |
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Simulavr-devel] [patch #7035] dependence on host byte order (endianity),
Petr Hluzin <=