patchSimulavr: an AVR simulator - Patches: patch #10479, Bug #66044: Apply address mask in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #10479: Bug #66044: Apply address mask in instruction decoder for LD/ST

Submitter:  Igor Proskurin <sciprosk>
Submitted:  Mon 30 Sep 2024 06:08:46 PM UTC
   
 
Category:  bug fix Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  simulavr

Mon 30 Sep 2024 06:08:46 PM UTC, original submission:  

Applies `core->dataAddressMask` in LD/ST instructions before writing to memory. Also, skips updating XH, YH, ZH if `core->dataAddressMask` is less or equal to 0xFF.

To comply with the clause from the "AVR Instruction Set Manual":

> only the low byte of the X-pointer is updated in devices with no more than 256 bytes of data space. For such devices, the high byte of the pointer is not used by this instruction and can be used for other purposes.


See also an issue in AVR-LibC: https://github.com/avrdudes/avr-libc/issues/954

Igor Proskurin <sciprosk>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #56467:  apply_address_mask.patch added by sciprosk (7KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by sciprosk (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-09-30 sciprosk Attached File- Added apply_address_mask.patch, #56467

    Back to the top

    Powered by Savane 3.14-60ba.
    Corresponding source code