Hi everyone, This patch updates the delay slot handling for the sh4 target.
The main feature is that delay slot flags now are stored in the tlb. This is needed for signal emulation and interrupts. There are also some correctness fixes included in this patch - with this patch applied i'm able to run quite a few dynamically linked busybox applets (uclibc). Some of these applets were broken without this fix. I've ran the sh4 binaries included in linux-user-test-0.2 and they work as usual. Some code and ideas come from the mips target. This is done to make the sh4 code less special and more readable for people coming from that architecture. cpu-exec.c | 4 - target-sh4/cpu.h | 18 +++---- target-sh4/op.c | 54 +++++++---------------- target-sh4/translate.c | 112 ++++++++++++++++++++++++++++++------------------ translate-all.c | 5 +- 5 files changed, 104 insertions(+), 89 deletions(-) Please apply! Thank you. / magnus
qemu-cvs-20071128c-sh-delay-slot.patch
Description: Binary data