]> git.proxmox.com Git - mirror_qemu.git/commit - target-sparc/translate.c
target-sparc: Tidy Tcc
authorRichard Henderson <rth@twiddle.net>
Fri, 5 Oct 2012 23:55:04 +0000 (16:55 -0700)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 7 Oct 2012 16:39:33 +0000 (16:39 +0000)
commitbd49ed41ebe518c79bd52e46ce5b9cf278f8a2af
tree94cf73b2c8fff7b33da40a36107cc8984ed93ce2
parentc28ae41ecd3bec70f1db8545e0800b9023891057
target-sparc: Tidy Tcc

Share more code between unconditional and conditional paths.

Move the computation of the trap number into the conditional BB;
avoid using temporaries that have gone out of scope (cpu_tmp32)
or rely on local temps (cpu_dst).

Fully fold the exception number when the trap number is %g0+imm.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-sparc/translate.c