diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-12-25 00:09:48 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-12-25 00:13:43 -0500 |
commit | 268c91391a3235cb00249b6eb9a2cb7341914fed (patch) | |
tree | 07879439ed6e919727a84115c60b6f1d20b474a3 /sim/common/dv-pal.c | |
parent | ef04e3719831b50e62cb97cd0ac10548a35cef40 (diff) | |
download | binutils-gdb-268c91391a3235cb00249b6eb9a2cb7341914fed.tar.gz |
sim: dv-pal: always use CPU_INDEX
Since the core always provides CPU_INDEX, use it. The current code
doesn't actually use it even though it should since it doesn't include
the right headers.
Diffstat (limited to 'sim/common/dv-pal.c')
-rw-r--r-- | sim/common/dv-pal.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sim/common/dv-pal.c b/sim/common/dv-pal.c index 97f01c8c0d4..d564e3ebc73 100644 --- a/sim/common/dv-pal.c +++ b/sim/common/dv-pal.c @@ -19,7 +19,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ - +#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; |