Skip to content

New hppa-linux-user target

Richard Henderson qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest25 of 26 patches 4 repliesIn review

25 of 26 patches are in this archive. The cover letter announces 26.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/26Revert "Remove remainders of HPPA backend"configure disas.c disas/Makefile.objs +2 more+2842 -22 replies
2/26linux-user: Support stack-grows-up in elfload.clinux-user/elfload.c linux-user/main.c linux-user/qemu.h+180 -710 replies
3/26linux-user: Handle TIOCSTART and TIOCSTOPlinux-user/ioctls.h linux-user/syscall.c+11 -00 replies
4/26linux-user: Add SIOCGPGRP, SIOCGSTAMP, SIOCGSTAMPNSlinux-user/ioctls.h linux-user/syscall_defs.h linux-user/syscall_types.h+13 -00 replies
5/26linux-user: Handle ERFKILL and EHWPOISONlinux-user/alpha/target_syscall.h linux-user/errno_defs.h linux-user/mips/target_syscall.h +2 more+21 -00 replies
6/26linux-user: Handle more IPV6 sockoptslinux-user/syscall.c+27 -20 replies
8/26linux-user: Add HPPA socket.h definitionslinux-user/hppa/sockbits.h linux-user/socket.h+99 -00 replies
9/26linux-user: Add HPPA syscall numberslinux-user/hppa/syscall_nr.h+353 -00 replies
10/26linux-user: Add HPPA termbits.hlinux-user/hppa/termbits.h+219 -00 replies
11/26linux-user: Add HPPA target_syscall.hlinux-user/hppa/target_syscall.h+237 -00 replies
12/26linux-user: Add HPPA definitions to syscall_defs.hlinux-user/syscall_defs.h+130 -10 replies
13/26linux-user: Add HPPA target_structs.hlinux-user/hppa/target_structs.h+54 -00 replies
14/26linux-user: Add HPPA target_signal.h and target_cpu.hlinux-user/hppa/target_cpu.h linux-user/hppa/target_signal.h+64 -00 replies
15/26linux-user: Add HPPA signal handlinglinux-user/signal.c+190 -10 replies
16/26linux-user: Add HPPA startup and main looplinux-user/elfload.c linux-user/main.c+196 -00 replies
17/26target-hppa: Add softfloat specializationsfpu/softfloat-specialize.h+19 -10 replies
18/26target-hppa: Add framework and enable compilationconfigure default-configs/hppa-linux-user.mak target-hppa/Makefile.objs +8 more+1111 -30 replies
19/26target-hppa: Add nullification frameworktarget-hppa/translate.c+224 -40 replies
20/26target-hppa: Implement basic arithmetictarget-hppa/helper.h target-hppa/op_helper.c target-hppa/translate.c+907 -00 replies
21/26target-hppa: Implement branchestarget-hppa/translate.c+477 -00 replies
22/26target-hppa: Implement linux-user gateway pagetarget-hppa/translate.c+81 -40 replies
23/26target-hppa: Implement shifts and depositstarget-hppa/translate.c+309 -00 replies
24/26target-hppa: Implement loads and storestarget-hppa/helper.h target-hppa/op_helper.c target-hppa/translate.c+699 -00 replies
25/26target-hppa: Implement system and memory-management insnstarget-hppa/helper.h target-hppa/op_helper.c target-hppa/translate.c+219 -00 replies
26/26target-hppa: Implement floating-point insnstarget-hppa/helper.h target-hppa/op_helper.c target-hppa/translate.c+1177 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/26] New hppa-linux-user target

This is a linux-user only port, emulating a 32-bit only version of a pa-2.0 cpu. This is good enough to do well with both the gcc and glibc testsuites. Helge Deller has provided invaluable assistance testing with a more complete debian chroot.

What's missing:
* Space registers. Since Linux sets them all equal (for a flat address space) and uses them like address-space identifiers, we can simply set them all to 0 and ignore them.

* Architecture subsets. There's no markup for running a pure pa1.0 or pa1.1 cpu. I happily accept everything up to pa2.0 at the moment.

* Wide mode. While I have pa2.0 instructions, I don't support running in 64-bit mode. Since neither the linux kernel nor glibc support a 64-bit userland, it would be a lot more work than just adding the insns.

* Multimedia instructions. These are tied to wide mode, so...

When squashing the patches down from my development tree, I wanted to preserve Helge's contributions, so the linux-user part is more patches than I would normally have preserved.

r~

Helge Deller (3):
linux-user: Handle TIOCSTART and TIOCSTOP
linux-user: Add SIOCGPGRP, SIOCGSTAMP, SIOCGSTAMPNS
linux-user: Add some hppa ioctls

Richard Henderson (23):
Revert "Remove remainders of HPPA backend"
linux-user: Support stack-grows-up in elfload.c
linux-user: Handle ERFKILL and EHWPOISON
linux-user: Handle more IPV6 sockopts
linux-user: Add HPPA socket.h definitions
linux-user: Add HPPA syscall numbers
linux-user: Add HPPA termbits.h
linux-user: Add HPPA target_syscall.h
linux-user: Add HPPA definitions to syscall_defs.h
linux-user: Add HPPA target_structs.h
linux-user: Add HPPA target_signal.h and target_cpu.h
linux-user: Add HPPA signal handling
linux-user: Add HPPA startup and main loop
target-hppa: Add softfloat specializations
target-hppa: Add framework and enable compilation
target-hppa: Add nullification framework
target-hppa: Implement basic arithmetic
target-hppa: Implement branches
target-hppa: Implement linux-user gateway page
target-hppa: Implement shifts and deposits
target-hppa: Implement loads and stores
target-hppa: Implement system and memory-management insns
target-hppa: Implement floating-point insns

 configure                           |    7 +-
 default-configs/hppa-linux-user.mak |    1 +
 disas.c                             |    2 +
 disas/Makefile.objs                 |    1 +
 disas/hppa.c                        | 2832 +++++++++++++++++++++++++
 fpu/softfloat-specialize.h          |   20 +-
 linux-user/alpha/target_syscall.h   |    2 +
 linux-user/elfload.c                |  259 ++-
 linux-user/errno_defs.h             |    3 +
 linux-user/hppa/sockbits.h          |   97 +
 linux-user/hppa/syscall_nr.h        |  353 ++++
 linux-user/hppa/target_cpu.h        |   35 +
 linux-user/hppa/target_signal.h     |   29 +
 linux-user/hppa/target_structs.h    |   54 +
 linux-user/hppa/target_syscall.h    |  237 +++
 linux-user/hppa/termbits.h          |  219 ++
 linux-user/ioctls.h                 |    8 +
 linux-user/main.c                   |  185 +-
 linux-user/mips/target_syscall.h    |    5 +
 linux-user/mips64/target_syscall.h  |    5 +
 linux-user/qemu.h                   |    3 +
 linux-user/signal.c                 |  191 +-
 linux-user/socket.h                 |    2 +
 linux-user/syscall.c                |   41 +-
 linux-user/syscall_defs.h           |  154 +-
 linux-user/syscall_types.h          |    6 +
 target-hppa/Makefile.objs           |    1 +
 target-hppa/cpu-qom.h               |   52 +
 target-hppa/cpu.c                   |  165 ++
 target-hppa/cpu.h                   |  144 ++
 target-hppa/gdbstub.c               |  111 +
 target-hppa/helper.c                |  137 ++
 target-hppa/helper.h                |   66 +
 target-hppa/op_helper.c             |  570 +++++
 target-hppa/translate.c             | 3946 +++++++++++++++++++++++++++++++++++
 35 files changed, 9864 insertions(+), 79 deletions(-)
 create mode 100644 default-configs/hppa-linux-user.mak
 create mode 100644 disas/hppa.c
 create mode 100644 linux-user/hppa/sockbits.h
 create mode 100644 linux-user/hppa/syscall_nr.h
 create mode 100644 linux-user/hppa/target_cpu.h
 create mode 100644 linux-user/hppa/target_signal.h
 create mode 100644 linux-user/hppa/target_structs.h
 create mode 100644 linux-user/hppa/target_syscall.h
 create mode 100644 linux-user/hppa/termbits.h
 create mode 100644 target-hppa/Makefile.objs
 create mode 100644 target-hppa/cpu-qom.h
 create mode 100644 target-hppa/cpu.c
 create mode 100644 target-hppa/cpu.h
 create mode 100644 target-hppa/gdbstub.c
 create mode 100644 target-hppa/helper.c
 create mode 100644 target-hppa/helper.h
 create mode 100644 target-hppa/op_helper.c
 create mode 100644 target-hppa/translate.c
Signature · 1 line
2.9.3