From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRIso-0003cm-Qg for qemu-devel@nongnu.org; Sun, 24 Jul 2016 08:51:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRIsk-0001LR-MB for qemu-devel@nongnu.org; Sun, 24 Jul 2016 08:51:49 -0400 Received: from gate.crashing.org ([63.228.1.57]:47562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRIsk-0001LE-Dt for qemu-devel@nongnu.org; Sun, 24 Jul 2016 08:51:46 -0400 Message-ID: <1469364697.8568.253.camel@kernel.crashing.org> From: Benjamin Herrenschmidt Date: Sun, 24 Jul 2016 22:51:37 +1000 In-Reply-To: <1469364141.8568.251.camel@kernel.crashing.org> References: <1469364141.8568.251.camel@kernel.crashing.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] TCG problem with cpu_{st,ld}x_data ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , Christian Borntraeger On Sun, 2016-07-24 at 22:42 +1000, Benjamin Herrenschmidt wrote: >=C2=A0 > What *did* work was to copy what x86 does, which is to change my > helper_stvebx() to not use cpu_stb_data at all, but instead use > cpu_stb_data_ra(...., GETPC()), which mimmics what x86 does for some > of > it's helpers. >=20 > That fixed the specific problem I was chasing. >=20 > However, there are a ton of other helpers, in powerpc, s390 and other > archs, doing that cpu_stb_data() the same way we do, so I really > wonder > what's going on here. >=20 > Some advice would be very much appreciated ;-) FYI: This probably completely wrong patch (but it was easier than hacking all the helpers) fixed the problem for me. With this (and the video driver I wrote that I will publish asap), I can now reliably boot various versions of MacOS X in qemu ppc using a 7400 CPU. Cheers, Ben.