Statistics
| Branch: | Revision:

root / target-sh4 @ 4c3b5a48

Name Size
README.sh4 4.8 kB
cpu.h 11.1 kB
exec.h 1.4 kB
helper.c 18.2 kB
helper.h 1.6 kB
machine.c 0 Bytes
op_helper.c 16.8 kB
translate.c 62 kB

Latest revisions

# Date Author Comment
2411fde9 01/16/2011 02:19 pm Aurelien Jarno

target-sh4: use rotl/rotr when possible

Signed-off-by: Aurelien Jarno <>

b2d9eda5 01/16/2011 02:19 pm Aurelien Jarno

target-sh4: implement negc using TCG

Using setcond it's now possible to generate a relatively short negc
instruction in TCG.

Signed-off-by: Aurelien Jarno <>

0c16e71e 01/15/2011 02:50 pm Aurelien Jarno

target-sh4: correct use of ! and &

Fix wrong usage of ! and & in MMU related functions. Thanks to Blue
Swirl for reporting the issue.

Reported-by: Blue Swirl <>
Signed-off-by: Aurelien Jarno <>

af8c2bde 01/14/2011 09:39 pm Aurelien Jarno

target-sh4: add fipr instruction

Add the fipr FVm,FVn instruction, which computes the inner products of
a 4-dimensional single precision floating-point vector.

Signed-off-by: Aurelien Jarno <>

17075f10 01/14/2011 09:39 pm Aurelien Jarno

target-sh4: add ftrv instruction

Add the ftrv XMTRX,FVn instruction, which computes the 4-row x 4-column
matrix XMTRX by the 4-dimensional vector FVn.

Signed-off-by: Aurelien Jarno <>

fd4bab10 01/14/2011 09:39 pm Aurelien Jarno

target-sh4: optimize exceptions

As exception is not the normal path, don't bother saving PC, before
raising one, instead rely on code retranslation to get the CPU state.

Signed-off-by: Aurelien Jarno <>

4f6493ff 01/14/2011 09:39 pm Aurelien Jarno

target-sh4: fix reset on r2d

Signed-off-by: Aurelien Jarno <>

6f396c8f 01/14/2011 09:39 pm Aurelien Jarno

target-sh4: simplify comparisons after a 'and' op

When a TCG variable is anded with a value and the compared with the same
value, we can simply invert the comparison and compare it with 0. The
generated code is smaller.

Signed-off-by: Aurelien Jarno <>

be15c50d 01/14/2011 09:39 pm Aurelien Jarno

target-sh4: log instructions start in TCG code

Signed-off-by: Aurelien Jarno <>

c5c19137 01/14/2011 09:39 pm Aurelien Jarno

target-sh4: use setcond when possible

Signed-off-by: Aurelien Jarno <>

View revisions

Also available in: Atom