qemu/target-xtensa
Max Filippov 3d0be8a5c1 target-xtensa: fix tb invalidation for IBREAK and LOOP
Instruction breakpoint/zero overhead loop handling code is built into
TBs pointed to by IBREAKA/LEND SRs. When these or related SRs get
changed TBs at virtual addresses corresponding to their old and their
new values must be invalidated.

Virtual address range is passed to the tb_invalidate_phys_page_range,
which is incorrect in system emulation mode.

To fix it use guest TLB/MMU to translate virtual address to physical
address.

However the guest may not have virtual-to-physical mapping at the moment
of IBREAKA/LEND change, thus this fix is not 100% accurate.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2012-04-14 15:25:38 +00:00
..
core-dc232b target-xtensa: add dc232b core 2011-10-16 10:40:02 +00:00
core-fsf target-xtensa: add fsf core 2011-10-16 10:40:16 +00:00
core-dc232b.c Merge branch 'upstream' of git://qemu.weilnetz.de/qemu 2012-03-03 17:59:06 +00:00
core-fsf.c Merge branch 'upstream' of git://qemu.weilnetz.de/qemu 2012-03-03 17:59:06 +00:00
cpu-qom.h target-xtensa: QOM'ify CPU 2012-04-14 03:48:08 +04:00
cpu.c target-xtensa: Start QOM'ifying CPU init 2012-04-14 03:48:08 +04:00
cpu.h target-xtensa: QOM'ify CPU reset 2012-04-14 03:48:08 +04:00
helper.c target-xtensa: Start QOM'ifying CPU init 2012-04-14 03:48:08 +04:00
helper.h target-xtensa: Move helpers.h to helper.h 2012-04-14 03:48:08 +04:00
machine.c target-xtensa: add target stubs 2011-09-10 16:57:36 +00:00
op_helper.c target-xtensa: fix tb invalidation for IBREAK and LOOP 2012-04-14 15:25:38 +00:00
overlay_tool.h target-xtensa: add DEBUG_SECTION to overlay tool 2012-02-20 20:07:12 +04:00
translate.c target-xtensa: fix tb invalidation for IBREAK and LOOP 2012-04-14 15:25:38 +00:00