Browse Source

target/or1k: Rename from openrisc

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>
pull/319/head
Richard Henderson 6 months ago
committed by Philippe Mathieu-Daudé
parent
commit
62822fc7e0
  1. 2
      MAINTAINERS
  2. 2
      configs/targets/or1k-linux-user.mak
  3. 2
      configs/targets/or1k-softmmu.mak
  4. 4
      hw/openrisc/Kconfig
  5. 2
      hw/openrisc/meson.build
  6. 2
      include/exec/poison.h
  7. 2
      include/system/arch_init.h
  8. 2
      include/user/abitypes.h
  9. 2
      linux-user/meson.build
  10. 5
      linux-user/openrisc/meson.build
  11. 0
      linux-user/or1k/cpu_loop.c
  12. 0
      linux-user/or1k/elfload.c
  13. 5
      linux-user/or1k/meson.build
  14. 0
      linux-user/or1k/signal.c
  15. 0
      linux-user/or1k/sockbits.h
  16. 0
      linux-user/or1k/syscall.tbl
  17. 0
      linux-user/or1k/syscallhdr.sh
  18. 0
      linux-user/or1k/target_cpu.h
  19. 0
      linux-user/or1k/target_elf.h
  20. 0
      linux-user/or1k/target_errno_defs.h
  21. 0
      linux-user/or1k/target_fcntl.h
  22. 0
      linux-user/or1k/target_mman.h
  23. 0
      linux-user/or1k/target_prctl.h
  24. 0
      linux-user/or1k/target_proc.h
  25. 0
      linux-user/or1k/target_ptrace.h
  26. 0
      linux-user/or1k/target_resource.h
  27. 0
      linux-user/or1k/target_signal.h
  28. 0
      linux-user/or1k/target_structs.h
  29. 0
      linux-user/or1k/target_syscall.h
  30. 0
      linux-user/or1k/termbits.h
  31. 4
      linux-user/syscall_defs.h
  32. 2
      system/qdev-monitor.c
  33. 2
      target/Kconfig
  34. 2
      target/meson.build
  35. 2
      target/or1k/Kconfig
  36. 0
      target/or1k/cpu-param.h
  37. 0
      target/or1k/cpu-qom.h
  38. 0
      target/or1k/cpu.c
  39. 0
      target/or1k/cpu.h
  40. 0
      target/or1k/disas.c
  41. 0
      target/or1k/exception.c
  42. 0
      target/or1k/exception.h
  43. 0
      target/or1k/exception_helper.c
  44. 0
      target/or1k/fpu_helper.c
  45. 0
      target/or1k/gdbstub.c
  46. 0
      target/or1k/helper.h
  47. 0
      target/or1k/insns.decode
  48. 0
      target/or1k/interrupt.c
  49. 0
      target/or1k/interrupt_helper.c
  50. 0
      target/or1k/machine.c
  51. 4
      target/or1k/meson.build
  52. 0
      target/or1k/mmu.c
  53. 0
      target/or1k/sys_helper.c
  54. 0
      target/or1k/translate.c

2
MAINTAINERS

@ -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

2
configs/targets/or1k-linux-user.mak

@ -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

2
configs/targets/or1k-softmmu.mak

@ -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

4
hw/openrisc/Kconfig

@ -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

2
hw/openrisc/meson.build

@ -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}

2
include/exec/poison.h

@ -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

2
include/system/arch_init.h

@ -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),

2
include/user/abitypes.h

@ -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

2
linux-user/meson.build

@ -50,7 +50,7 @@ subdir('m68k')
subdir('microblaze')
subdir('mips64')
subdir('mips')
subdir('openrisc')
subdir('or1k')
subdir('ppc')
subdir('riscv')
subdir('s390x')

5
linux-user/openrisc/meson.build

@ -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')
}

0
linux-user/openrisc/cpu_loop.c → linux-user/or1k/cpu_loop.c

0
linux-user/openrisc/elfload.c → linux-user/or1k/elfload.c

5
linux-user/or1k/meson.build

@ -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')
}

0
linux-user/openrisc/signal.c → linux-user/or1k/signal.c

0
linux-user/openrisc/sockbits.h → linux-user/or1k/sockbits.h

0
linux-user/openrisc/syscall.tbl → linux-user/or1k/syscall.tbl

0
linux-user/openrisc/syscallhdr.sh → linux-user/or1k/syscallhdr.sh

0
linux-user/openrisc/target_cpu.h → linux-user/or1k/target_cpu.h

0
linux-user/openrisc/target_elf.h → linux-user/or1k/target_elf.h

0
linux-user/openrisc/target_errno_defs.h → linux-user/or1k/target_errno_defs.h

0
linux-user/openrisc/target_fcntl.h → linux-user/or1k/target_fcntl.h

0
linux-user/openrisc/target_mman.h → linux-user/or1k/target_mman.h

0
linux-user/openrisc/target_prctl.h → linux-user/or1k/target_prctl.h

0
linux-user/openrisc/target_proc.h → linux-user/or1k/target_proc.h

0
linux-user/openrisc/target_ptrace.h → linux-user/or1k/target_ptrace.h

0
linux-user/openrisc/target_resource.h → linux-user/or1k/target_resource.h

0
linux-user/openrisc/target_signal.h → linux-user/or1k/target_signal.h

0
linux-user/openrisc/target_structs.h → linux-user/or1k/target_structs.h

0
linux-user/openrisc/target_syscall.h → linux-user/or1k/target_syscall.h

0
linux-user/openrisc/termbits.h → linux-user/or1k/termbits.h

4
linux-user/syscall_defs.h

@ -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 */

2
system/qdev-monitor.c

@ -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 | \

2
target/Kconfig

@ -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

2
target/meson.build

@ -8,7 +8,7 @@ subdir('loongarch')
subdir('m68k')
subdir('microblaze')
subdir('mips')
subdir('openrisc')
subdir('or1k')
subdir('ppc')
subdir('riscv')
subdir('rx')

2
target/openrisc/Kconfig → target/or1k/Kconfig

@ -1,3 +1,3 @@
config OPENRISC
config OR1K
bool
select DEVICE_TREE # needed by boot.c

0
target/openrisc/cpu-param.h → target/or1k/cpu-param.h

0
target/openrisc/cpu-qom.h → target/or1k/cpu-qom.h

0
target/openrisc/cpu.c → target/or1k/cpu.c

0
target/openrisc/cpu.h → target/or1k/cpu.h

0
target/openrisc/disas.c → target/or1k/disas.c

0
target/openrisc/exception.c → target/or1k/exception.c

0
target/openrisc/exception.h → target/or1k/exception.h

0
target/openrisc/exception_helper.c → target/or1k/exception_helper.c

0
target/openrisc/fpu_helper.c → target/or1k/fpu_helper.c

0
target/openrisc/gdbstub.c → target/or1k/gdbstub.c

0
target/openrisc/helper.h → target/or1k/helper.h

0
target/openrisc/insns.decode → target/or1k/insns.decode

0
target/openrisc/interrupt.c → target/or1k/interrupt.c

0
target/openrisc/interrupt_helper.c → target/or1k/interrupt_helper.c

0
target/openrisc/machine.c → target/or1k/machine.c

4
target/openrisc/meson.build → target/or1k/meson.build

@ -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}

0
target/openrisc/mmu.c → target/or1k/mmu.c

0
target/openrisc/sys_helper.c → target/or1k/sys_helper.c

0
target/openrisc/translate.c → target/or1k/translate.c

Loading…
Cancel
Save