summaryrefslogtreecommitdiffstats
path: root/tcg/ppc64/tcg-target.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-09-13 19:37:44 +0200
committerAurelien Jarno <aurelien@aurel32.net>2012-09-22 16:52:37 +0200
commitb18212c66870f119111e0777fcc19462ae07eb70 (patch)
tree3fc1f626cf94c3c59b29a9fba27e7cc9439e0d77 /tcg/ppc64/tcg-target.c
parent1b7621ad99d352629c096cba40eadc6fb2b0c294 (diff)
downloadhqemu-b18212c66870f119111e0777fcc19462ae07eb70.zip
hqemu-b18212c66870f119111e0777fcc19462ae07eb70.tar.gz
tcg/i386: Add shortcuts for registers used in L constraint
While 64 bit hosts use the first three registers which are also used as function input parameters, 32 bit hosts use TCG_REG_EAX and TCG_REG_EDX which are not used in parameter passing. After defining new register macros for the registers used in L constraint, the patch replaces most occurrences of tcg_target_call_iarg_regs[0], tcg_target_call_iarg_regs[1] and tcg_target_call_iarg_regs[2] by those new macros. tcg_target_call_iarg_regs remains unchanged when it is used for input arguments (only with 64 bit hosts) before tcg_out_calli. A comment related to those registers was fixed, too. Signed-off-by: Stefan Weil <sw@weilnetz.de> [aurel32: build fix on i386, small optimization for i386 in the prologue] Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'tcg/ppc64/tcg-target.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud