]> git.proxmox.com Git - qemu.git/commit - target-xtensa/translate.c
target-xtensa: add ICOUNT SR and debug exception
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 15 Jan 2012 01:40:50 +0000 (05:40 +0400)
committerMax Filippov <jcmvbkbc@gmail.com>
Sat, 18 Feb 2012 10:55:52 +0000 (14:55 +0400)
commit35b5c0442798c1754f1d56452528dce5fee003c2
treeffc45877d83c476a726558b1a0121521ea3de40a
parente61dc8f72c096e084106d5e97101d9d88f642d0e
target-xtensa: add ICOUNT SR and debug exception

ICOUNT SR gets incremented on every instruction completion provided that
CINTLEVEL at the beginning of the instruction execution is lower than
ICOUNTLEVEL.

When ICOUNT would increment to 0 a debug exception is raised if
CINTLEVEL is lower than DEBUGLEVEL.

See ISA, 4.7.7.5 for more details.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
target-xtensa/cpu.h
target-xtensa/translate.c