[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 5/5] tests/tcg: add user version of dumb-as-bricks semicon
From: |
Alex Bennée |
Subject: |
Re: [PATCH v2 5/5] tests/tcg: add user version of dumb-as-bricks semiconsole test |
Date: |
Tue, 07 Jan 2020 14:27:19 +0000 |
User-agent: |
mu4e 1.3.6; emacs 28.0.50 |
Richard Henderson <address@hidden> writes:
> On 12/21/19 12:22 AM, Alex Bennée wrote:
>> +#if defined(__arm__)
>> + register uintptr_t t asm("r0") = type;
>> + register uintptr_t a0 asm("r1") = arg0;
>> + asm("svc 0xab"
>> + : "=r" (t)
>> + : "r" (t), "r" (a0));
>
> This is the #ifdef __thumb__ svc code. Are you enforcing that with
> command-line arguments?
No it is dealing with aarch64 vs 32 bit and the __arm__ is a compiler
symbol.
>
> Might as well fix this, then test both arm and thumb.
I've enabled for Aarch64 just like the semihosting test.
>
>
> r~
--
Alex Bennée
- Re: [PATCH v2 5/5] tests/tcg: add user version of dumb-as-bricks semiconsole test,
Alex Bennée <=