Re: [PATCH 2/2] riscv: semihosting: replace inline assembly with assembly file

2023-03-07 Thread Tom Rini
On Tue, Feb 07, 2023 at 03:21:05PM +, Andre Przywara wrote: > So far we used inline assembly to inject the actual instruction that > triggers the semihosting service. While this sounds elegant, as it's > really only about a few instructions, it has some serious downsides: > - We need some

Re: [PATCH 2/2] riscv: semihosting: replace inline assembly with assembly file

2023-02-09 Thread Sean Anderson
On 2/7/23 10:21, Andre Przywara wrote: > So far we used inline assembly to inject the actual instruction that > triggers the semihosting service. While this sounds elegant, as it's > really only about a few instructions, it has some serious downsides: > - We need some barriers in place to force

[PATCH 2/2] riscv: semihosting: replace inline assembly with assembly file

2023-02-07 Thread Andre Przywara
So far we used inline assembly to inject the actual instruction that triggers the semihosting service. While this sounds elegant, as it's really only about a few instructions, it has some serious downsides: - We need some barriers in place to force the compiler to issue writes to a data