Leon Alrae a5f533909e target-mips: fix hflags modified in delay / forbidden slot
All instructions which may change hflags terminate tb. However, this doesn't
work if such an instruction is placed in delay or forbidden slot.
gen_branch() clears MIPS_HFLAG_BMASK in ctx->hflags and then generates code
to overwrite hflags with ctx->hflags, consequently we loose any execution-time
hflags modifications. For example, in the following scenario hflag related to
Status.CU1 will not be updated:
    /* Set Status.CU1 in delay slot */
    mfc0  $24, $12, 0
    lui   $25, 0x2000
    or    $25, $25, $24
    b     check_Status_CU1
    mtc0  $25, $12, 0

With this change we clear MIPS_HFLAG_BMASK in execution-time hflags if
instruction in delay or forbidden slot wants to terminate tb for some reason
(i.e. ctx->bstate != BS_NONE).

Also, die early and loudly if "unknown branch" is encountered as this should
never happen.

Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
2015-03-18 09:58:15 +00:00
2015-03-04 13:00:36 -05:00
2013-04-18 13:50:53 +02:00
2015-02-06 16:11:38 +00:00
2015-03-16 13:29:12 +05:30
2012-09-07 09:02:44 +03:00
2014-06-16 13:24:35 +02:00
2013-09-05 09:40:31 -05:00
2015-02-23 10:56:09 -05:00
2015-03-16 12:10:30 -04:00
2013-10-11 09:34:56 -07:00
2015-03-17 11:10:48 +01:00
2015-02-16 17:30:19 +01:00
2013-07-23 02:41:31 +02:00
2015-03-16 14:31:07 +01:00
2015-03-16 14:31:07 +01:00
2015-03-16 14:31:07 +01:00
2015-03-10 10:49:25 +01:00
2015-02-05 17:16:14 +01:00
2015-02-16 14:36:03 +00:00
2015-03-16 14:31:07 +01:00
2015-02-16 15:07:19 +00:00
2014-05-24 00:07:29 +04:00
2015-03-16 14:31:07 +01:00
2015-03-10 11:33:35 +01:00
2013-10-11 09:34:56 -07:00
2015-01-14 10:38:57 +01:00
2015-02-12 21:21:38 -08:00
2015-03-10 09:26:22 +01:00
2014-12-09 21:48:34 +00:00
2013-10-11 09:34:56 -07:00
2015-03-12 15:49:57 +01:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 569 MiB
Languages
C 83%
C++ 6.3%
Python 3.2%
Dylan 2.9%
Shell 1.6%
Other 2.8%