[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] riscv: Add semihosting support [v8]

From: Richard Henderson
Subject: Re: [PATCH] riscv: Add semihosting support [v8]
Date: Mon, 26 Oct 2020 12:26:07 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 10/24/20 8:00 AM, Alistair Francis wrote:
>>>> +#define RISCV_EXCP_SEMIHOST                      0x10
>>> I don't see this in the RISC-V spec, it seems to just be reserved, not
>>> for semihosting.
>> Hrm. It's entirely an internal implementation detail in QEMU and matches
>> how semihosting works in the ARM implementation -- the presence of the
>> semihosting breakpoint raises this exception which is then handled in
>> the usual exception processing path.
> It's not fully internal though. Someone running with the `-d int`
> command line argument will see these exceptions, which don't
> correspond to anything in the spec.
> Is there some way we could at least convey that information to users?

This is no different to EXCP_DEBUG, really, which is also internal to qemu but
user-visible in the same way.  Just adjust the logging in 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]