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 LARGE RAM feature which can be used in xmega controllers,
that could be added later. For the currently supported MCUs this
feature is disabled and RAMPZ is not used for RAM access.
Signed-off-by: Pavel Dovgalyuk<pavel.dovgal...@ispras.ru>
---
target/avr/cpu.h | 2 ++
target/avr/translate.c | 63 ++++++++++++++++++++++++++++++------------------
2 files changed, 41 insertions(+), 24 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
r~