Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFkok-0000NR-He for qemu-devel@nongnu.org; Wed, 02 Dec 2009 03:44:10 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFkof-0000Mk-I6 for qemu-devel@nongnu.org; Wed, 02 Dec 2009 03:44:10 -0500 Received: from [199.232.76.173] (port=43608 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFkof-0000Mh-El for qemu-devel@nongnu.org; Wed, 02 Dec 2009 03:44:05 -0500 Received: from cantor.suse.de ([195.135.220.2]:44618 helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NFkoe-00035n-T5 for qemu-devel@nongnu.org; Wed, 02 Dec 2009 03:44:05 -0500 Subject: Re: [Qemu-devel] [PATCH 03/11] S/390 fake TCG implementation Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: <20091202084150.GX2310@hall.aurel32.net> Date: Wed, 2 Dec 2009 09:44:01 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1259241800-2810-1-git-send-email-agraf@suse.de> <1259241800-2810-4-git-send-email-agraf@suse.de> <20091130181839.GA15790@volta.aurel32.net> <64A99957-57DC-4C8E-A07E-D210CF41AB45@suse.de> <20091202081607.GS2310@hall.aurel32.net> <2F64FA88-DE5B-4356-BB13-AF5B8DFFEA51@suse.de> <20091202084150.GX2310@hall.aurel32.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: Carsten Otte , qemu-devel@nongnu.org On 02.12.2009, at 09:41, Aurelien Jarno wrote: > On Wed, Dec 02, 2009 at 09:29:59AM +0100, Alexander Graf wrote: >>=20 >> On 02.12.2009, at 09:16, Aurelien Jarno wrote: >>=20 >>> On Mon, Nov 30, 2009 at 11:27:53PM +0100, Alexander Graf wrote: >>>>=20 >>>> On 30.11.2009, at 19:18, Aurelien Jarno wrote: >>>>=20 >>>>> On Thu, Nov 26, 2009 at 02:23:12PM +0100, Alexander Graf wrote: >>>>>> Qemu won't let us run a KVM target without having host TCG = support. Well, for >>>>>> now we don't have any so let's implement a fake target that only = stubs out >>>>>> everything. >>>>>>=20 >>>>>> I tried to keep the patch as close to Uli's source as possible, = so whenever >>>>>> he feels like it he can easily diff his version against this one. >>>>>=20 >>>>> Please find the comments below. >>>>>=20 >>>>>> Signed-off-by: Alexander Graf >>>>>> --- >>>>>> dyngen-exec.h | 2 +- >>>>>> target-s390x/helper.c | 5 ++ >>>>>> tcg/s390/tcg-target.c | 103 = +++++++++++++++++++++++++++++++++++++++++++++++++ >>>>>> tcg/s390/tcg-target.h | 48 +++++++++++++++++++++++ >>>>>> 4 files changed, 157 insertions(+), 1 deletions(-) >>>>>> create mode 100644 tcg/s390/tcg-target.c >>>>>> create mode 100644 tcg/s390/tcg-target.h >>>>>>=20 >>>>>> diff --git a/dyngen-exec.h b/dyngen-exec.h >>>>>> index 86e61c3..0353f36 100644 >>>>>> --- a/dyngen-exec.h >>>>>> +++ b/dyngen-exec.h >>>>>> @@ -117,7 +117,7 @@ extern int printf(const char *, ...); >>>>>>=20 >>>>>> /* The return address may point to the start of the next = instruction. >>>>>> Subtracting one gets us the call instruction itself. */ >>>>>> -#if defined(__s390__) >>>>>> +#if defined(__s390__) && !defined(__s390x__) >>>>>> # define GETPC() ((void*)(((unsigned = long)__builtin_return_address(0) & 0x7fffffffUL) - 1)) >>>>>> #elif defined(__arm__) >>>>>> /* Thumb return addresses have the low bit set, so we need to = subtract two. >>>>>> diff --git a/target-s390x/helper.c b/target-s390x/helper.c >>>>>> index 4e23b4a..0e222e3 100644 >>>>>> --- a/target-s390x/helper.c >>>>>> +++ b/target-s390x/helper.c >>>>>> @@ -44,6 +44,11 @@ CPUS390XState *cpu_s390x_init(const char = *cpu_model) >>>>>> return env; >>>>>> } >>>>>>=20 >>>>>> +target_phys_addr_t cpu_get_phys_page_debug(CPUState *env, = target_ulong addr) >>>>>> +{ >>>>>> + return addr; >>>>>> +} >>>>>> + >>>>>=20 >>>>> Why does it appear in this patch? It has nothing to do with TCG = support. >>>>=20 >>>> I don't remember. What is this used for anyways? >>>=20 >>> If it is not used, maybe it's better to remove it. >>=20 >> It's called from exec.c. >=20 > Then it's clearly not part of this patch, it should probably be part = of > patch 1 or 6 instead. Yes, moved it already. Alex=