X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Fnds32_reg.c;h=7cefcb1a234c32255a46ec4d09da728adda21a5a;hp=997f4ed39073e46b2f31260ac5c26374d68cdd03;hb=d0e763ac7ef6aa17b17bd00ccdfbccfb4eacda69;hpb=f132fcf636361009b4125827351ef01556d49b31 diff --git a/src/target/nds32_reg.c b/src/target/nds32_reg.c index 997f4ed390..7cefcb1a23 100644 --- a/src/target/nds32_reg.c +++ b/src/target/nds32_reg.c @@ -13,9 +13,7 @@ * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * + * along with this program. If not, see . * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include "config.h" @@ -26,7 +24,7 @@ static bool nds32_reg_init_done; static struct nds32_reg_s nds32_regs[TOTAL_REG_NUM]; -static struct nds32_reg_exception_s nds32_ex_reg_values[] = { +static const struct nds32_reg_exception_s nds32_ex_reg_values[] = { {IR0, 3, 0x3, 2}, {IR0, 3, 0x3, 3}, {IR1, 3, 0x3, 2}, @@ -358,7 +356,7 @@ const char *nds32_reg_symbolic_name(uint32_t number) bool nds32_reg_exception(uint32_t number, uint32_t value) { int i; - struct nds32_reg_exception_s *ex_reg_value; + const struct nds32_reg_exception_s *ex_reg_value; uint32_t field_value; i = 0;