Statistics
| Branch: | Revision:

root / target-mips @ 5f7319cd

Name Size
Makefile.objs 109 Bytes
TODO 1.9 kB
cpu-qom.h 1.8 kB
cpu.c 1.8 kB
cpu.h 24 kB
dsp_helper.c 143.6 kB
helper.c 22 kB
helper.h 28 kB
lmi_helper.c 14 kB
machine.c 10.6 kB
mips-defs.h 2.1 kB
op_helper.c 106.8 kB
translate.c 474.3 kB
translate_init.c 24.7 kB

Latest revisions

# Date Author Comment
4a587b2c 10/31/2012 11:20 pm Aurelien Jarno

target-mips: keep softfloat exception set to 0 between instructions

Instead of clearing the softfloat exception flags before each floating
point instruction, reset them to 0 in update_fcr31() when an exception
is detected.

Reviewed-by: Richard Henderson <>...

5dbe90bb 10/31/2012 11:20 pm Aurelien Jarno

target-mips: fix FPU exceptions

For each FPU instruction that can trigger an FPU exception, to call
call update_fcr31() after.

Remove the manual NaN assignment in case of float to float operation, as
softfloat is already taking care of that. However for float to int...

4cc2e5f9 10/31/2012 11:20 pm Aurelien Jarno

target-mips: cleanup float to int conversion helpers

Instead of accessing the flags from the floating point control
register after updating it, read the softfloat flags.

This is just code cleanup and should not change the behaviour.

Reviewed-by: Richard Henderson <>...

05993cd0 10/31/2012 11:20 pm Aurelien Jarno

target-mips: use softfloat constants when possible

softfloat already has a few constants defined, use them instead of
redefining them in target-mips.

Rename FLOAT_SNAN32 and FLOAT_SNAN64 to FP_TO_INT32_OVERFLOW and
FP_TO_INT64_OVERFLOW as even if they have the same value, they are...

5f7319cd 10/31/2012 11:20 pm Aurelien Jarno

target-mips: restore CPU state after an FPU exception

Rework raise_exception() functions so that they can be called from
other helpers, passing the return address as an argument.

Use do_raise_exception() function in update_fcr31() to correctly restore...

4636401d 10/31/2012 11:20 pm Aurelien Jarno

target-mips: correctly restore btarget upon exception

When the CPU state is restored through retranslation after an exception,
btarget should also be restored.

Reviewed-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

1e0e239a 10/31/2012 11:20 pm Aurelien Jarno

target-mips: do not save CPU state when using retranslation

When the CPU state after a possible retranslation is going to be handled
through code retranslation, we don't need to save the CPU state before.

Reviewed-by: Richard Henderson <>...

b3d6cd44 10/31/2012 11:20 pm Aurelien Jarno

target-mips: use the softfloat floatXX_muladd functions

Use the new softfloat floatXX_muladd() functions to implement the madd,
msub, nmadd and nmsub instructions. At the same time replace the name of
the helpers by the name of the instruction, as the only reason for the...

40e3acc1 10/31/2012 11:20 pm Aurelien Jarno

target-mips: remove #if defined(TARGET_MIPS64) in opcode enums

All switch() decoding instruction have a default entry, so it is possible
to have unused enum entries. Remove conditional definitions of MIPS64
opcode enums, as it only makes the code less readable....

b30706dd 10/31/2012 10:37 pm Jia Liu

target-mips: Change TODO file

Change DSP r1 & DSP r2 into microMIPS DSP encodings in TODO file.

Signed-off-by: Jia Liu <>
Signed-off-by: Aurelien Jarno <>

View revisions

Also available in: Atom