]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/or1k: Rename from openrisc
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 5 Feb 2026 03:02:39 +0000 (13:02 +1000)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 9 Feb 2026 19:51:52 +0000 (20:51 +0100)
This is the minimal change beginning with TARGET_ARCH in
configs/targets/or1k-* from openrisc to or1k, then adjust
TARGET_OR1K, QEMU_ARCH_OR1K, directory names,
and meson.build to match.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20260205030244.266447-2-richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
54 files changed:
MAINTAINERS
configs/targets/or1k-linux-user.mak
configs/targets/or1k-softmmu.mak
hw/openrisc/Kconfig
hw/openrisc/meson.build
include/exec/poison.h
include/system/arch_init.h
include/user/abitypes.h
linux-user/meson.build
linux-user/openrisc/meson.build [deleted file]
linux-user/or1k/cpu_loop.c [moved from linux-user/openrisc/cpu_loop.c with 100% similarity]
linux-user/or1k/elfload.c [moved from linux-user/openrisc/elfload.c with 100% similarity]
linux-user/or1k/meson.build [new file with mode: 0644]
linux-user/or1k/signal.c [moved from linux-user/openrisc/signal.c with 100% similarity]
linux-user/or1k/sockbits.h [moved from linux-user/openrisc/sockbits.h with 100% similarity]
linux-user/or1k/syscall.tbl [moved from linux-user/openrisc/syscall.tbl with 100% similarity]
linux-user/or1k/syscallhdr.sh [moved from linux-user/openrisc/syscallhdr.sh with 100% similarity]
linux-user/or1k/target_cpu.h [moved from linux-user/openrisc/target_cpu.h with 100% similarity]
linux-user/or1k/target_elf.h [moved from linux-user/openrisc/target_elf.h with 100% similarity]
linux-user/or1k/target_errno_defs.h [moved from linux-user/openrisc/target_errno_defs.h with 100% similarity]
linux-user/or1k/target_fcntl.h [moved from linux-user/openrisc/target_fcntl.h with 100% similarity]
linux-user/or1k/target_mman.h [moved from linux-user/openrisc/target_mman.h with 100% similarity]
linux-user/or1k/target_prctl.h [moved from linux-user/openrisc/target_prctl.h with 100% similarity]
linux-user/or1k/target_proc.h [moved from linux-user/openrisc/target_proc.h with 100% similarity]
linux-user/or1k/target_ptrace.h [moved from linux-user/openrisc/target_ptrace.h with 100% similarity]
linux-user/or1k/target_resource.h [moved from linux-user/openrisc/target_resource.h with 100% similarity]
linux-user/or1k/target_signal.h [moved from linux-user/openrisc/target_signal.h with 100% similarity]
linux-user/or1k/target_structs.h [moved from linux-user/openrisc/target_structs.h with 100% similarity]
linux-user/or1k/target_syscall.h [moved from linux-user/openrisc/target_syscall.h with 100% similarity]
linux-user/or1k/termbits.h [moved from linux-user/openrisc/termbits.h with 100% similarity]
linux-user/syscall_defs.h
system/qdev-monitor.c
target/Kconfig
target/meson.build
target/or1k/Kconfig [moved from target/openrisc/Kconfig with 76% similarity]
target/or1k/cpu-param.h [moved from target/openrisc/cpu-param.h with 100% similarity]
target/or1k/cpu-qom.h [moved from target/openrisc/cpu-qom.h with 100% similarity]
target/or1k/cpu.c [moved from target/openrisc/cpu.c with 100% similarity]
target/or1k/cpu.h [moved from target/openrisc/cpu.h with 100% similarity]
target/or1k/disas.c [moved from target/openrisc/disas.c with 100% similarity]
target/or1k/exception.c [moved from target/openrisc/exception.c with 100% similarity]
target/or1k/exception.h [moved from target/openrisc/exception.h with 100% similarity]
target/or1k/exception_helper.c [moved from target/openrisc/exception_helper.c with 100% similarity]
target/or1k/fpu_helper.c [moved from target/openrisc/fpu_helper.c with 100% similarity]
target/or1k/gdbstub.c [moved from target/openrisc/gdbstub.c with 100% similarity]
target/or1k/helper.h [moved from target/openrisc/helper.h with 100% similarity]
target/or1k/insns.decode [moved from target/openrisc/insns.decode with 100% similarity]
target/or1k/interrupt.c [moved from target/openrisc/interrupt.c with 100% similarity]
target/or1k/interrupt_helper.c [moved from target/openrisc/interrupt_helper.c with 100% similarity]
target/or1k/machine.c [moved from target/openrisc/machine.c with 100% similarity]
target/or1k/meson.build [moved from target/openrisc/meson.build with 79% similarity]
target/or1k/mmu.c [moved from target/openrisc/mmu.c with 100% similarity]
target/or1k/sys_helper.c [moved from target/openrisc/sys_helper.c with 100% similarity]
target/or1k/translate.c [moved from target/openrisc/translate.c with 100% similarity]

index 65ac60b86b172cd7b391257ccf10094b0b2c17d5..08bcd8892ac91b748ea95e7597dbc667d9bb999c 100644 (file)
@@ -303,7 +303,7 @@ OpenRISC TCG CPUs
 M: Stafford Horne <shorne@gmail.com>
 S: Odd Fixes
 F: docs/system/openrisc/cpu-features.rst
-F: target/openrisc/
+F: target/or1k/
 F: hw/openrisc/
 F: include/hw/openrisc/
 F: tests/functional/or1k/meson.build
index 97d7cb10465b51d818a8aae57219e0d581883262..0ee3a05884d85d56d8fc9f02c37db05f42353e2b 100644 (file)
@@ -1,4 +1,4 @@
-TARGET_ARCH=openrisc
+TARGET_ARCH=or1k
 TARGET_BIG_ENDIAN=y
 TARGET_SYSTBL_ABI=common,32,or1k,time32,stat64,rlimit,renameat
 TARGET_SYSTBL=syscall.tbl
index c53408a2bf5ae8c2d3ab5ea5c16afa18aa12af46..204283d604fe80166e16ffcb83f7bc79912d3495 100644 (file)
@@ -1,4 +1,4 @@
-TARGET_ARCH=openrisc
+TARGET_ARCH=or1k
 TARGET_BIG_ENDIAN=y
 # needed by boot.c and all boards
 TARGET_NEED_FDT=y
index 0702f622a55f525f1e8e7d6e2f57bae579599b35..b5c2e5655bc2605df7bd5ee8c1caf56c573a1a2b 100644 (file)
@@ -1,7 +1,7 @@
 config OR1K_SIM
     bool
     default y
-    depends on OPENRISC
+    depends on OR1K
     select DEVICE_TREE
     select SERIAL_MM
     select OPENCORES_ETH
@@ -11,7 +11,7 @@ config OR1K_SIM
 config OR1K_VIRT
     bool
     default y
-    depends on OPENRISC
+    depends on OR1K
     imply PCI_DEVICES
     imply VIRTIO_VGA
     imply TEST_DEVICES
index 82f1f0ef1cc91e437bb3dcc2279957c189212d2e..49c274b84836893cf721f51dc71b632db2ed4704 100644 (file)
@@ -4,4 +4,4 @@ openrisc_ss.add(files('boot.c'))
 openrisc_ss.add(when: 'CONFIG_OR1K_SIM', if_true: files('openrisc_sim.c'))
 openrisc_ss.add(when: 'CONFIG_OR1K_VIRT', if_true: files('virt.c'))
 
-hw_arch += {'openrisc': openrisc_ss}
+hw_arch += {'or1k': openrisc_ss}
index a779adbb7a6cbfa68fa011fabb324b7410603692..21eed4c54fac1fdee83582112ea4f053524bd3d1 100644 (file)
@@ -21,7 +21,7 @@
 #pragma GCC poison TARGET_ABI_MIPSO32
 #pragma GCC poison TARGET_MIPS64
 #pragma GCC poison TARGET_ABI_MIPSN64
-#pragma GCC poison TARGET_OPENRISC
+#pragma GCC poison TARGET_OR1K
 #pragma GCC poison TARGET_PPC
 #pragma GCC poison TARGET_PPC64
 #pragma GCC poison TARGET_ABI32
index 51e24c3091e20bd7cbdbdf7b8b7d86754d9e85d6..f2f909d54064b5188d851b345a2379b57f13a381 100644 (file)
@@ -15,7 +15,7 @@ enum {
     QEMU_ARCH_SH4 = (1 << 10),
     QEMU_ARCH_SPARC = (1 << 11),
     QEMU_ARCH_XTENSA = (1 << 12),
-    QEMU_ARCH_OPENRISC = (1 << 13),
+    QEMU_ARCH_OR1K = (1 << 13),
     QEMU_ARCH_TRICORE = (1 << 16),
     QEMU_ARCH_HPPA = (1 << 18),
     QEMU_ARCH_RISCV = (1 << 19),
index be7a8765238266e8044d36910f643372750c0751..534a29bc12c6b4d140b8199d70b510528b3861b1 100644 (file)
@@ -22,7 +22,7 @@
 
 #if (defined(TARGET_I386) && !defined(TARGET_X86_64)) \
     || defined(TARGET_SH4) \
-    || defined(TARGET_OPENRISC) \
+    || defined(TARGET_OR1K) \
     || defined(TARGET_MICROBLAZE)
 #define ABI_LLONG_ALIGNMENT 4
 #endif
index efca8433698fa0163356fb27b47ffc66b4ca1aca..332847a621852fd8f6241a366a0623d291d29ba0 100644 (file)
@@ -50,7 +50,7 @@ subdir('m68k')
 subdir('microblaze')
 subdir('mips64')
 subdir('mips')
-subdir('openrisc')
+subdir('or1k')
 subdir('ppc')
 subdir('riscv')
 subdir('s390x')
diff --git a/linux-user/openrisc/meson.build b/linux-user/openrisc/meson.build
deleted file mode 100644 (file)
index 273e7a0..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-syscall_nr_generators += {
-  'openrisc': generator(sh,
-                      arguments: [ meson.current_source_dir() / 'syscallhdr.sh', '@INPUT@', '@OUTPUT@', '@EXTRA_ARGS@' ],
-                      output: '@BASENAME@_nr.h')
-}
diff --git a/linux-user/or1k/meson.build b/linux-user/or1k/meson.build
new file mode 100644 (file)
index 0000000..bb7c2ee
--- /dev/null
@@ -0,0 +1,5 @@
+syscall_nr_generators += {
+  'or1k': generator(sh,
+                    arguments: [ meson.current_source_dir() / 'syscallhdr.sh', '@INPUT@', '@OUTPUT@', '@EXTRA_ARGS@' ],
+                    output: '@BASENAME@_nr.h')
+}
index 6ae6e1fa13971bf2533b2f33c2a34a9ec77d1711..20d862fd8b1f4002bbd7256baab499eb749a8f1f 100644 (file)
@@ -72,7 +72,7 @@
 
 #if defined(TARGET_I386) || defined(TARGET_ARM) || defined(TARGET_SH4)  \
     || defined(TARGET_M68K)                                             \
-    || defined(TARGET_S390X) || defined(TARGET_OPENRISC)                \
+    || defined(TARGET_S390X) || defined(TARGET_OR1K)                    \
     || defined(TARGET_RISCV)                                            \
     || defined(TARGET_XTENSA) || defined(TARGET_LOONGARCH64)
 
@@ -1976,7 +1976,7 @@ struct target_stat64  {
     abi_ulong __unused5;
 };
 
-#elif defined(TARGET_OPENRISC) \
+#elif defined(TARGET_OR1K) \
     || defined(TARGET_RISCV) || defined(TARGET_HEXAGON) || defined(TARGET_LOONGARCH)
 
 /* These are the asm-generic versions of the stat and stat64 structures */
index be18902bb2f9dc0200934d39536c0be527ce24ac..1ac6d9a857559b7f46f9176ce69406394b4a4765 100644 (file)
@@ -62,7 +62,7 @@ typedef struct QDevAlias
                               QEMU_ARCH_I386 | \
                               QEMU_ARCH_LOONGARCH | \
                               QEMU_ARCH_MIPS | \
-                              QEMU_ARCH_OPENRISC | \
+                              QEMU_ARCH_OR1K | \
                               QEMU_ARCH_PPC | \
                               QEMU_ARCH_RISCV | \
                               QEMU_ARCH_SH4 | \
index d0c7b59d9c718d59057bd505e94b28e84d4245d8..3c73e3bae01eea4881a7e9922f49be57ff3e1474 100644 (file)
@@ -7,7 +7,7 @@ source loongarch/Kconfig
 source m68k/Kconfig
 source microblaze/Kconfig
 source mips/Kconfig
-source openrisc/Kconfig
+source or1k/Kconfig
 source ppc/Kconfig
 source riscv/Kconfig
 source rx/Kconfig
index b29598e7c5edffcd2c6aaafcc10629d12d06c9a2..d891ef9ee09d5fb34123a1f4377b3a3c1bc6415b 100644 (file)
@@ -8,7 +8,7 @@ subdir('loongarch')
 subdir('m68k')
 subdir('microblaze')
 subdir('mips')
-subdir('openrisc')
+subdir('or1k')
 subdir('ppc')
 subdir('riscv')
 subdir('rx')
similarity index 76%
rename from target/openrisc/Kconfig
rename to target/or1k/Kconfig
index cd66c2e3b6ca813afa43c7531ea4e27e6b20a852..b2693067b1f13dcbe09751250c343e3658872eac 100644 (file)
@@ -1,3 +1,3 @@
-config OPENRISC
+config OR1K
     bool
     select DEVICE_TREE # needed by boot.c
similarity index 100%
rename from target/openrisc/cpu.c
rename to target/or1k/cpu.c
similarity index 100%
rename from target/openrisc/cpu.h
rename to target/or1k/cpu.h
similarity index 100%
rename from target/openrisc/disas.c
rename to target/or1k/disas.c
similarity index 79%
rename from target/openrisc/meson.build
rename to target/or1k/meson.build
index d51ea1ab7536c7d6cfdaa3ce6ee09e381475f6d8..cad8c1b1ae0619fd08b6c4f2333435117fd9d8dc 100644 (file)
@@ -21,5 +21,5 @@ openrisc_system_ss.add(files(
   'mmu.c',
 ))
 
-target_arch += {'openrisc': openrisc_ss}
-target_common_system_arch += {'openrisc': openrisc_system_ss}
+target_arch += {'or1k': openrisc_ss}
+target_common_system_arch += {'or1k': openrisc_system_ss}
similarity index 100%
rename from target/openrisc/mmu.c
rename to target/or1k/mmu.c