nds32: add new target type nds32_v2, nds32_v3, nds32_v3m
[openocd.git] / src / target / nds32_reg.h
index a94194143e077594b6ac086d68db6bc45389e8d7..1c61b6164bfdcb82cc88d6c767296bb5e6747022 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2013 by Andes Technology                                *
+ *   Copyright (C) 2013 Andes Technology                                   *
  *   Hsiangkai Wang <hkwang@andestech.com>                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -24,8 +24,7 @@
 #define NDS32_REGISTER_DISABLE         (0x0)
 
 enum nds32_reg_number_s {
-       /* general registers */
-       R0 = 0,
+       R0 = 0, /* general registers */
        R1,
        R2,
        R3,
@@ -64,9 +63,7 @@ enum nds32_reg_number_s {
        D1HI,
        ITB,
        IFC_LP,
-
-       /* system registers */
-       CR0,
+       CR0, /* system registers */
        CR1,
        CR2,
        CR3,
@@ -99,6 +96,11 @@ enum nds32_reg_number_s {
        IR23,
        IR24,
        IR25,
+       IR26,
+       IR27,
+       IR28,
+       IR29,
+       IR30,
        MR0,
        MR1,
        MR2,
@@ -180,9 +182,7 @@ enum nds32_reg_number_s {
        IDR0,
        IDR1,
        SECUR0,
-
-       /* audio registers */
-       D0L24,
+       D0L24, /* audio registers */
        D1L24,
        I0,
        I1,
@@ -214,9 +214,7 @@ enum nds32_reg_number_s {
        CBE1,
        CBE2,
        CBE3,
-
-       /* fpu */
-       FPCSR,
+       FPCSR, /* fpu */
        FPCFG,
        FS0,
        FS1,
@@ -310,11 +308,19 @@ struct nds32_reg_s {
        uint8_t size;
 };
 
+struct nds32_reg_exception_s {
+       uint32_t reg_num;
+       uint32_t ex_value_bit_pos;
+       uint32_t ex_value_mask;
+       uint32_t ex_value;
+};
+
 void nds32_reg_init(void);
 uint32_t nds32_reg_sr_index(uint32_t number);
 enum nds32_reg_type_s nds32_reg_type(uint32_t number);
 uint8_t nds32_reg_size(uint32_t number);
 const char *nds32_reg_simple_name(uint32_t number);
 const char *nds32_reg_symbolic_name(uint32_t number);
+bool nds32_reg_exception(uint32_t number, uint32_t value);
 
 #endif

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)