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.
+2015-12-25 Mike Frysinger <vapier@gentoo.org>
+
+ * dv-pal.c: Include config.h and sim-main.h.
+ (hw_pal_io_read_buffer): Always call CPU_INDEX.
+
2015-12-24 Mike Frysinger <vapier@gentoo.org>
* sim-options.c (standard_options): Always enable load-lma and
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"
{
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;