Skip to contentSkip to conversation

Solaris amd64 patch

Qemu-devel Ben Taylor 2 participants 2 messages Feb 2, 2007

lore
Share & tools
lore

Ben Taylor

author
#0 lore raw

This patch (by Martin Bochnig [email protected]) fixes a register allocation issue on Solaris.

Some supporting evidence and the original patch were posted at:

http://www.opensolaris.org/jive/thread.jspa?threadID=22392&tstart=0

dyngen-exec.h +2 -2
diff -ruN qemu-ORIG/dyngen-exec.h qemu/dyngen-exec.h
@@ -88,8 +88,8 @@
 #define AREG3 "edi"
 #endif
 #ifdef __x86_64__
-#define AREG0 "rbp"
-#define AREG1 "rbx"
+#define AREG0 "r14"
+#define AREG1 "r15"
 #define AREG2 "r12"
 #define AREG3 "r13"
 //#define AREG4 "r14"
#1 lore raw
Quoted 10 lines · Ben Taylor

This patch (by Martin Bochnig [email protected]) fixes a register allocation issue on Solaris.

Some supporting evidence and the original patch were posted at:

http://www.opensolaris.org/jive/thread.jspa?threadID=22392&tstart=0

This also makes debugging a bit easier (for base pointer is left untouched) Still it is better to make AREG0 %r13 - the generated code is smaller.

Signature · 2 lines
Kind regards,
Igor V. Kovalenko