X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Fmips32.c;h=47b069e62877e8d847bfa4cf47bd43caedec7e98;hp=5870ae692bfa3f4f4f394ff6decd2f0c1dc02128;hb=4eadb146c18d9d5faaefc9c258d2aa715e3a1596;hpb=8d73c2a9b0c00c870694a57f7cfbc23e354855ac diff --git a/src/target/mips32.c b/src/target/mips32.c index 5870ae692b..47b069e628 100644 --- a/src/target/mips32.c +++ b/src/target/mips32.c @@ -4,6 +4,9 @@ * * * Copyright (C) 2008 by David T.L. Wong * * * + * Copyright (C) 2007,2008 Øyvind Harboe * + * oyvind.harboe@zylin.com * + * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * @@ -286,7 +289,10 @@ reg_cache_t *mips32_build_reg_cache(target_t *target) if (mips32_core_reg_arch_type == -1) mips32_core_reg_arch_type = register_reg_arch_type(mips32_get_core_reg, mips32_set_core_reg); - + + register_init_dummy(&mips32_gdb_dummy_fsr_reg); + register_init_dummy(&mips32_gdb_dummy_fir_reg); + /* Build the process context cache */ cache->name = "mips32 registers"; cache->next = NULL; @@ -314,7 +320,7 @@ reg_cache_t *mips32_build_reg_cache(target_t *target) return cache; } -int mips32_init_arch_info(target_t *target, mips32_common_t *mips32, int chain_pos, char *variant) +int mips32_init_arch_info(target_t *target, mips32_common_t *mips32, int chain_pos, const char *variant) { target->arch_info = mips32; mips32->common_magic = MIPS32_COMMON_MAGIC;