From 6597c28d618a3d16d468770b7c30a0237a8c8ea9 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 5 Apr 2016 19:43:40 -0700 Subject: 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 --- target/openrisc/exception_helper.c | 1 + 1 file changed, 1 insertion(+) (limited to 'target/openrisc/exception_helper.c') diff --git a/target/openrisc/exception_helper.c b/target/openrisc/exception_helper.c index 1536053856..a8a5f69b05 100644 --- a/target/openrisc/exception_helper.c +++ b/target/openrisc/exception_helper.c @@ -19,6 +19,7 @@ #include "qemu/osdep.h" #include "cpu.h" +#include "exec/exec-all.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" #include "exception.h" -- cgit 1.4.1