aboutsummaryrefslogtreecommitdiff
path: root/sim/common/dv-pal.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common/dv-pal.c')
-rw-r--r--sim/common/dv-pal.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sim/common/dv-pal.c b/sim/common/dv-pal.c
index 97f01c8..d564e3e 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;