]> git.proxmox.com Git - qemu.git/commit
target-sh4: Split the LDST macro into 2 sub-macros
authorAlexandre Courbot <gnurou@gmail.com>
Mon, 12 Jul 2010 05:05:31 +0000 (14:05 +0900)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 12 Jul 2010 08:20:29 +0000 (10:20 +0200)
commit8e9b06787bd31b5acfbcbc4b29832d73c25852fb
treed207eae992f7866bb4b3207c3cd835f69ec50853
parent1ddda5cd364d2f82201830ca69675e17c60ded8e
target-sh4: Split the LDST macro into 2 sub-macros

The LDST macro is used to generate ldc and stc instructions that work with a
specific register. However, the SGR register only supports stc up to SH4A,
which supports both stc and ldc. This patch creates two sub-macros named LD
and ST that handle generating ldc and stc instructions separately, and
redeclares LDST to use these sub-macro.

Signed-off-by: Alexandre Courbot <gnurou@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-sh4/translate.c