Re: Invalid ARM instruction for clang-compiled Android code

2019-11-15 Thread Michael Goffioul
On Fri, Nov 15, 2019 at 6:03 AM Peter Maydell wrote: > Richard, I think we're tripping over the check you added > in commit af2882289951e. Specifically: > > +/* We UNDEF for these UNPREDICTABLE cases. */ > +if (a->rd == 15 || a->rn == 15 || a->rt == 15 > +|| a->rd == a->rn ||

Re: Invalid ARM instruction for clang-compiled Android code

2019-11-15 Thread Michael Goffioul
On Fri, Nov 15, 2019 at 6:03 AM Peter Maydell wrote: > On Fri, 15 Nov 2019 at 05:03, Michael Goffioul > wrote: > > When running QEMU user mode on some code compiled by clang (dynamic > linker from AOSP-10), the emulator chokes on this instruction: > > > >9aa92:

Invalid ARM instruction for clang-compiled Android code

2019-11-14 Thread Michael Goffioul
When running QEMU user mode on some code compiled by clang (dynamic linker from AOSP-10), the emulator chokes on this instruction: 9aa92: e8c0 2277 strexd r7, r2, r2, [r0] >From debugging, I determined that op_strex() calls unallocated_encoding(), which I think leads to the

Re: How to clone CPUState in a new thread?

2019-11-08 Thread Michael Goffioul
On Thu, Nov 7, 2019 at 1:50 PM Michael Goffioul wrote: > On Thu, Nov 7, 2019 at 7:53 AM Peter Maydell > wrote: > >> On Thu, 7 Nov 2019 at 12:46, Michael Goffioul >> wrote: >> > Side question: is this the right mailing list to discuss this, or is >> there

Re: How to clone CPUState in a new thread?

2019-11-07 Thread Michael Goffioul
On Thu, Nov 7, 2019 at 7:53 AM Peter Maydell wrote: > On Thu, 7 Nov 2019 at 12:46, Michael Goffioul > wrote: > > Side question: is this the right mailing list to discuss this, or is > there a more appropriate one? > > You're more likely to find actual QEMU developers readi

Re: How to clone CPUState in a new thread?

2019-11-07 Thread Michael Goffioul
On Thu, Nov 7, 2019 at 7:38 AM Michael Goffioul wrote: > > > On Thu, Nov 7, 2019 at 4:57 AM Jakob Bohm wrote: > >> On 07/11/2019 01:44, Michael Goffioul wrote: >> > Hi, >> > >> > I'm working on a project that wants to replace houdini (ARM-to-x86

Re: How to clone CPUState in a new thread?

2019-11-07 Thread Michael Goffioul
On Thu, Nov 7, 2019 at 4:57 AM Jakob Bohm wrote: > On 07/11/2019 01:44, Michael Goffioul wrote: > > Hi, > > > > I'm working on a project that wants to replace houdini (ARM-to-x86 > > translation layer for Android from Intel) with a free open-source > > implementa

How to clone CPUState in a new thread?

2019-11-06 Thread Michael Goffioul
Hi, I'm working on a project that wants to replace houdini (ARM-to-x86 translation layer for Android from Intel) with a free open-source implementation. I'm trying to leverage qemu user-mode to achieve that, but it requires code changes to allow executing dynamically loaded functions instead of