]> git.ipfire.org Git - thirdparty/qemu.git/commit
target-mips: fix offset calculation for Interrupts
authorYongbok Kim <yongbok.kim@imgtec.com>
Fri, 10 Jul 2015 11:10:02 +0000 (12:10 +0100)
committerLeon Alrae <leon.alrae@imgtec.com>
Tue, 28 Jul 2015 07:57:51 +0000 (08:57 +0100)
commitda52a4dfcc4864fd2260ec4eab331f75b1f0240b
treebce577918dafec5176ffc2debd6c7c8ea53b0d75
parent8bcbb834a015432bfb4d09a883c21f017eadd978
target-mips: fix offset calculation for Interrupts

Correct computation of vector offsets for EXCP_EXT_INTERRUPT.
For instance, if Cause.IV is 0 the vector offset should be 0x180.

Simplify the finding vector number logic for the Vectored Interrupts.

Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
Reviewed-by: Leon Alrae <leon.alrae@imgtec.com>
[leon.alrae@imgtec.com: cosmetic changes]
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
target-mips/helper.c
target-mips/op_helper.c