qemu-devel
[Top][All Lists]
Advanced

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

Re: [RFC PATCH v2 02/30] target/loongarch: Add CSR registers definition


From: Richard Henderson
Subject: Re: [RFC PATCH v2 02/30] target/loongarch: Add CSR registers definition
Date: Fri, 12 Nov 2021 08:14:08 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0


On 11/12/21 3:14 AM, yangxiaojuan wrote:
+#define  EXCODE_IP                   64

What's this?


The manual 6.1.3 says the exception number of an interrupt is the exception 
number plus an offset of 64. This defines the offset, sorry, the name is bad, 
maybe change a name or just use 64 directly in the exception handle is better.
Perhaps

#define EXCCODE_EXTERNAL_INT   64   /* plus external interrupt number */

?

r~



reply via email to

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