[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v2 04/30] target/loongarch: Define exceptions for LoongAr
From: |
yangxiaojuan |
Subject: |
Re: [RFC PATCH v2 04/30] target/loongarch: Define exceptions for LoongArch. |
Date: |
Fri, 12 Nov 2021 10:24:52 +0800 |
User-agent: |
Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
Hi Richard,
On 11/11/2021 09:36 PM, Richard Henderson wrote:
> On 11/11/21 2:35 AM, Xiaojuan Yang wrote:
>> +++ b/target/loongarch/cpu.h
>> @@ -369,8 +369,21 @@ enum {
>> EXCP_BREAK,
>> EXCP_INE,
>> EXCP_FPE,
>> -
>> - EXCP_LAST = EXCP_FPE,
>> + EXCP_IPE,
>> + EXCP_TLBL,
>> + EXCP_TLBS,
>> + EXCP_INST_NOTAVAIL,
>> + EXCP_TLBM,
>> + EXCP_TLBPE,
>> + EXCP_TLBNX,
>> + EXCP_TLBNR,
>> + EXCP_EXT_INTERRUPT,
>> + EXCP_DBP,
>> + EXCP_IBE,
>> + EXCP_DBE,
>> + EXCP_DINT,
>> +
>> + EXCP_LAST = EXCP_DINT,
>
> Surely this is (essentially) a duplicate of EXCCODE_*.
> I think we should have only one copy of this.
>
OK, I will use EXCCODE_* directly. Thanks
Xiaojuan
>
> r~