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
ivier > > Subject: [PATCH v3] Hexagon: add PC alignment check and exception > > 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-o

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 will

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: https://lore.kernel.org

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

2024-04-30 Thread Matheus Tavares Bernardino
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: https://lore.kernel.org/qemu-devel/e559b521d1920f804df10244c8c07564431aeba5.1