X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Fcommon%2Fdv-pal.c;h=abe3bbc466f43b323df9f5abcedf36c406b92d20;hb=87f83f20023bf366c14ec4e0fd307948d96caaee;hp=8a6952f0705f6277f4be1d7ad1a59b0d051ca614;hpb=ecd75fc8eed3bde86036141228074a20e55dcfc9;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/common/dv-pal.c b/sim/common/dv-pal.c index 8a6952f070..abe3bbc466 100644 --- a/sim/common/dv-pal.c +++ b/sim/common/dv-pal.c @@ -1,6 +1,6 @@ /* The common simulator framework for GDB, the GNU Debugger. - Copyright 2002-2014 Free Software Foundation, Inc. + Copyright 2002-2020 Free Software Foundation, Inc. Contributed by Andrew Cagney and Red Hat. @@ -19,7 +19,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ - +#include "config.h" +#include "sim-main.h" #include "hw-main.h" #include "sim-io.h" @@ -349,11 +350,7 @@ hw_pal_io_read_buffer (struct hw *me, { case hw_pal_cpu_nr_register: -#ifdef CPU_INDEX *byte = CPU_INDEX (hw_system_cpu (me)); -#else - *byte = 0; -#endif HW_TRACE ((me, "read - cpu-nr %d\n", *byte)); break;