File: 10-fix-rega0-for-riscv.patch

package info (click to toggle)
hatari 2.6.1%2Bdfsg-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 11,232 kB
  • sloc: ansic: 167,249; cpp: 8,685; python: 6,324; objc: 1,888; asm: 1,754; sh: 1,688; javascript: 149; makefile: 87; xml: 32
file content (18 lines) | stat: -rw-r--r-- 625 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Fix issue where REG_A0 is already defined by riscv64 platform
Author: Tien Hock Loh <tienhock.loh@starfivetech.com>
Forwarded: https://listengine.tuxfamily.org/lists.tuxfamily.org/hatari-devel/2022/06/msg00140.html

Index: hatari-2.3.1+dfsg/src/includes/m68000.h
===================================================================
--- pkg-hatari.orig/src/includes/m68000.h
+++ pkg-hatari/src/includes/m68000.h
@@ -15,6 +15,9 @@
 /*			a possible pairing between add.l (a5,d1.w),d0	*/
 /*			and move.b 7(a5,d1.w),d5.			*/
 
+#ifdef REG_A0
+#undef REG_A0
+#endif
 
 #ifndef HATARI_M68000_H
 #define HATARI_M68000_H