|
From: | Laurent Amon |
Subject: | Re: [Qemu-devel] [PATCH] CONFIG_MMU_MAP powerpc host support |
Date: | Tue, 28 Dec 2004 00:43:00 +0100 |
So you'll have to write asm code which is platform independent. I think the best way to do that is simply to use the C Preprocessor, and define constant string for registers names, for instance :[...]
#ifdef __powerpc__Merci Pierre,
/* asm("addis r4, %3, ha16(%4)"); */
asm (ppc_asm_4(addis, ppc_r4, "%3", ppc_high("%4")) "\n");
#endif
[Prev in Thread] | Current Thread | [Next in Thread] |