]> git.proxmox.com Git - mirror_qemu.git/commit
target/openrisc: Optimize for r0 being zero
authorRichard Henderson <rth@twiddle.net>
Wed, 6 Apr 2016 02:43:40 +0000 (19:43 -0700)
committerRichard Henderson <rth@twiddle.net>
Mon, 13 Feb 2017 21:15:00 +0000 (08:15 +1100)
commit6597c28d618a3d16d468770b7c30a0237a8c8ea9
tree45f88af4cf649ce36afadd421965ae88d5173ea6
parenta01deb36a685365b4a3117112da3cc4f0f79e955
target/openrisc: Optimize for r0 being zero

The HW does not special-case r0, but the ABI specifies that r0 should
contain 0.  If we expose this fact to the optimizer, we can simplify
a lot of the generated code.  We must of course verify that r0==0, but
that is trivial to do with a TB flag.

Signed-off-by: Richard Henderson <rth@twiddle.net>
target/openrisc/cpu.h
target/openrisc/exception_helper.c
target/openrisc/translate.c