[PATCH v2 2/5] target/avr: implement small RAM/large RAM feature

2023-01-23 Thread Pavel Dovgalyuk
translate.c functions use RAMPZ for RAM access. This register is also used for ROM reads. However, in MCUs with 64k RAM support RAMPZ is used for ROM only. Therefore when RAMPZ is set, addressing the RAM becomes incorrect in the emulator. This patch adds LARGE RAM feature which can be used in xmega

Re: [PATCH v2 2/5] target/avr: implement small RAM/large RAM feature

2023-01-19 Thread Richard Henderson
On 1/18/23 23:22, Pavel Dovgalyuk wrote: translate.c functions use RAMPZ for RAM access. This register is also used for ROM reads. However, in MCUs with 64k RAM support RAMPZ is used for ROM only. Therefore when RAMPZ is set, addressing the RAM becomes incorrect in the emulator. This patch adds L

[PATCH v2 2/5] target/avr: implement small RAM/large RAM feature

2023-01-19 Thread Pavel Dovgalyuk
translate.c functions use RAMPZ for RAM access. This register is also used for ROM reads. However, in MCUs with 64k RAM support RAMPZ is used for ROM only. Therefore when RAMPZ is set, addressing the RAM becomes incorrect in the emulator. This patch adds LARGE RAM feature which can be used in xmega