Re: [PATCH v3] Hexagon: add PC alignment check and exception

2024-05-02 Thread Matheus Tavares Bernardino
On Tue, 30 Apr 2024 08:52:36 -0700 Richard Henderson wrote: > > On 4/30/24 07:25, Matheus Tavares Bernardino wrote: > > +void test_multi_cof(void) > > +{ > > +asm volatile( > > +"p0 = cmp.eq(r0, r0)\n" > > +"{\n" > > +"if (p0) jump test_multi_cof_unaligned\n" > >

RE: [PATCH v3] Hexagon: add PC alignment check and exception

2024-04-30 Thread ltaylorsimpson
> -Original Message- > From: Matheus Tavares Bernardino > Sent: Tuesday, April 30, 2024 9:25 AM > To: qemu-devel@nongnu.org > Cc: bc...@quicinc.com; sidn...@quicinc.com; a...@rev.ng; a...@rev.ng; > ltaylorsimp...@gmail.com; richard.hender...@linaro.org; Laurent Vivier > > Subject:

RE: [PATCH v3] Hexagon: add PC alignment check and exception

2024-04-30 Thread Brian Cain
ect: Re: [PATCH v3] Hexagon: add PC alignment check and exception > > WARNING: This email originated from outside of Qualcomm. Please be wary of > any links or attachments, and do not enable macros. > > On 4/30/24 07:25, Matheus Tavares Bernardino wrote: > > +void t

Re: [PATCH v3] Hexagon: add PC alignment check and exception

2024-04-30 Thread Richard Henderson
On 4/30/24 07:25, Matheus Tavares Bernardino wrote: +void test_multi_cof(void) +{ +asm volatile( +"p0 = cmp.eq(r0, r0)\n" +"{\n" +"if (p0) jump test_multi_cof_unaligned\n" +"jump 1f\n" +"}\n" +"1: nop\n" +: : : "p0"); +} I

Re: [PATCH v3] Hexagon: add PC alignment check and exception

2024-04-30 Thread Richard Henderson
On 4/30/24 07:25, Matheus Tavares Bernardino wrote: The Hexagon Programmer's Reference Manual says that the exception 0x1e should be raised upon an unaligned program counter. Let's implement that and also add some tests. Signed-off-by: Matheus Tavares Bernardino --- v2: