URL: <https://savannah.nongnu.org/patch/?10479>
Summary: Bug #66044: Apply address mask in instruction decoder for LD/ST Group: Simulavr: an AVR simulator Submitter: sciprosk Submitted: Mon 30 Sep 2024 06:08:46 PM UTC Category: bug fix Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Component Version: simulavr _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Mon 30 Sep 2024 06:08:46 PM UTC By: Igor Proskurin <sciprosk> 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 _______________________________________________________ File Attachments: ------------------------------------------------------- Name: apply_address_mask.patch Size: 7KiB <https://file.savannah.nongnu.org/file/apply_address_mask.patch?file_id=56467> AGPL NOTICE These attachments are served by Savane. You can download the corresponding source code of Savane at https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-313a91255c0c27e4f16716faa819c81cd4a56b5e.tar.gz _______________________________________________________ Reply to this item at: <https://savannah.nongnu.org/patch/?10479> _______________________________________________ Message sent via Savannah https://savannah.nongnu.org/
signature.asc
Description: PGP signature