diff options
| author | Maciej W. Rozycki | 2014-11-07 21:05:35 +0100 |
|---|---|---|
| committer | Leon Alrae | 2014-12-16 13:45:19 +0100 |
| commit | c3577479815f5bcf9d38993967bca2115af245d8 (patch) | |
| tree | 0aac6c1eae93ffde21d7a83d4db52cf4e727905e /scripts | |
| parent | target-mips: Restore the order of helpers (diff) | |
| download | qemu-c3577479815f5bcf9d38993967bca2115af245d8.tar.gz qemu-c3577479815f5bcf9d38993967bca2115af245d8.tar.xz qemu-c3577479815f5bcf9d38993967bca2115af245d8.zip | |
target-mips: Correct MIPS16/microMIPS branch size calculation
Correct MIPS16/microMIPS branch size calculation in PC adjustment
needed:
- to set the value of CP0.ErrorEPC at the entry to the reset exception,
- for the purpose of branch reexecution in the context of device I/O.
Follow the approach taken in `exception_resume_pc' for ordinary, Debug
and NMI exceptions.
MIPS16 and microMIPS branches can be 2 or 4 bytes in size and that has
to be reflected in calculation. Original MIPS ISA branches, which is
where this code originates from, are always 4 bytes long, just as all
original MIPS ISA instructions.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Maciej W. Rozycki <macro@codesourcery.com>
Reviewed-by: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
