qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

linux-user: move sparc signal definitions to sparc/target_signal.h

Remove sparc64/target_signal.h, use sparc/target_signal.h instead.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20180529194207.31503-11-laurent@vivier.eu>

+50 -75
+48
linux-user/sparc/target_signal.h
··· 1 1 #ifndef SPARC_TARGET_SIGNAL_H 2 2 #define SPARC_TARGET_SIGNAL_H 3 3 4 + #define TARGET_SIGHUP 1 5 + #define TARGET_SIGINT 2 6 + #define TARGET_SIGQUIT 3 7 + #define TARGET_SIGILL 4 8 + #define TARGET_SIGTRAP 5 9 + #define TARGET_SIGABRT 6 10 + #define TARGET_SIGIOT 6 11 + #define TARGET_SIGSTKFLT 7 /* actually EMT */ 12 + #define TARGET_SIGFPE 8 13 + #define TARGET_SIGKILL 9 14 + #define TARGET_SIGBUS 10 15 + #define TARGET_SIGSEGV 11 16 + #define TARGET_SIGSYS 12 17 + #define TARGET_SIGPIPE 13 18 + #define TARGET_SIGALRM 14 19 + #define TARGET_SIGTERM 15 20 + #define TARGET_SIGURG 16 21 + #define TARGET_SIGSTOP 17 22 + #define TARGET_SIGTSTP 18 23 + #define TARGET_SIGCONT 19 24 + #define TARGET_SIGCHLD 20 25 + #define TARGET_SIGTTIN 21 26 + #define TARGET_SIGTTOU 22 27 + #define TARGET_SIGIO 23 28 + #define TARGET_SIGXCPU 24 29 + #define TARGET_SIGXFSZ 25 30 + #define TARGET_SIGVTALRM 26 31 + #define TARGET_SIGPROF 27 32 + #define TARGET_SIGWINCH 28 33 + #define TARGET_SIGPWR 29 34 + #define TARGET_SIGUSR1 30 35 + #define TARGET_SIGUSR2 31 36 + #define TARGET_SIGRTMIN 32 37 + 38 + #define TARGET_SIG_BLOCK 0x01 /* for blocking signals */ 39 + #define TARGET_SIG_UNBLOCK 0x02 /* for unblocking signals */ 40 + #define TARGET_SIG_SETMASK 0x04 /* for setting the signal mask */ 41 + 4 42 /* this struct defines a stack used during syscall handling */ 5 43 6 44 typedef struct target_sigaltstack { ··· 15 53 */ 16 54 #define TARGET_SS_ONSTACK 1 17 55 #define TARGET_SS_DISABLE 2 56 + 57 + #define TARGET_SA_NOCLDSTOP 8u 58 + #define TARGET_SA_NOCLDWAIT 0x100u 59 + #define TARGET_SA_SIGINFO 0x200u 60 + #define TARGET_SA_ONSTACK 1u 61 + #define TARGET_SA_RESTART 2u 62 + #define TARGET_SA_NODEFER 0x20u 63 + #define TARGET_SA_RESETHAND 4u 64 + #define TARGET_ARCH_HAS_SA_RESTORER 1 65 + #define TARGET_ARCH_HAS_KA_RESTORER 1 18 66 19 67 #define TARGET_MINSIGSTKSZ 4096 20 68 #define TARGET_SIGSTKSZ 16384
-1
linux-user/sparc64/signal.c
··· 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 - #define SPARC_TARGET_SIGNAL_H /* to only include sparc64/target_signal.h */ 20 19 #include "../sparc/signal.c"
+1 -23
linux-user/sparc64/target_signal.h
··· 1 - #ifndef SPARC64_TARGET_SIGNAL_H 2 - #define SPARC64_TARGET_SIGNAL_H 3 - 4 - /* this struct defines a stack used during syscall handling */ 5 - 6 - typedef struct target_sigaltstack { 7 - abi_ulong ss_sp; 8 - abi_long ss_flags; 9 - abi_ulong ss_size; 10 - } target_stack_t; 11 - 12 - 13 - /* 14 - * sigaltstack controls 15 - */ 16 - #define TARGET_SS_ONSTACK 1 17 - #define TARGET_SS_DISABLE 2 18 - 19 - #define TARGET_MINSIGSTKSZ 4096 20 - #define TARGET_SIGSTKSZ 16384 21 - 22 - #define TARGET_ARCH_HAS_SETUP_FRAME 23 - #endif /* SPARC64_TARGET_SIGNAL_H */ 1 + #include "../sparc/target_signal.h"
+1 -51
linux-user/syscall_defs.h
··· 426 426 || defined(TARGET_TILEGX) || defined(TARGET_HPPA) || defined(TARGET_NIOS2) \ 427 427 || defined(TARGET_RISCV) || defined(TARGET_XTENSA) 428 428 429 - #if defined(TARGET_SPARC) 430 - #define TARGET_SA_NOCLDSTOP 8u 431 - #define TARGET_SA_NOCLDWAIT 0x100u 432 - #define TARGET_SA_SIGINFO 0x200u 433 - #define TARGET_SA_ONSTACK 1u 434 - #define TARGET_SA_RESTART 2u 435 - #define TARGET_SA_NODEFER 0x20u 436 - #define TARGET_SA_RESETHAND 4u 437 - #define TARGET_ARCH_HAS_SA_RESTORER 1 438 - #define TARGET_ARCH_HAS_KA_RESTORER 1 439 - #elif defined(TARGET_MIPS) 429 + #if defined(TARGET_MIPS) 440 430 #define TARGET_SA_NOCLDSTOP 0x00000001 441 431 #define TARGET_SA_NOCLDWAIT 0x00010000 442 432 #define TARGET_SA_SIGINFO 0x00000008 ··· 517 507 #define TARGET_SIG_BLOCK 1 518 508 #define TARGET_SIG_UNBLOCK 2 519 509 #define TARGET_SIG_SETMASK 3 520 - 521 - #elif defined(TARGET_SPARC) 522 - 523 - #define TARGET_SIGHUP 1 524 - #define TARGET_SIGINT 2 525 - #define TARGET_SIGQUIT 3 526 - #define TARGET_SIGILL 4 527 - #define TARGET_SIGTRAP 5 528 - #define TARGET_SIGABRT 6 529 - #define TARGET_SIGIOT 6 530 - #define TARGET_SIGSTKFLT 7 /* actually EMT */ 531 - #define TARGET_SIGFPE 8 532 - #define TARGET_SIGKILL 9 533 - #define TARGET_SIGBUS 10 534 - #define TARGET_SIGSEGV 11 535 - #define TARGET_SIGSYS 12 536 - #define TARGET_SIGPIPE 13 537 - #define TARGET_SIGALRM 14 538 - #define TARGET_SIGTERM 15 539 - #define TARGET_SIGURG 16 540 - #define TARGET_SIGSTOP 17 541 - #define TARGET_SIGTSTP 18 542 - #define TARGET_SIGCONT 19 543 - #define TARGET_SIGCHLD 20 544 - #define TARGET_SIGTTIN 21 545 - #define TARGET_SIGTTOU 22 546 - #define TARGET_SIGIO 23 547 - #define TARGET_SIGXCPU 24 548 - #define TARGET_SIGXFSZ 25 549 - #define TARGET_SIGVTALRM 26 550 - #define TARGET_SIGPROF 27 551 - #define TARGET_SIGWINCH 28 552 - #define TARGET_SIGPWR 29 553 - #define TARGET_SIGUSR1 30 554 - #define TARGET_SIGUSR2 31 555 - #define TARGET_SIGRTMIN 32 556 - 557 - #define TARGET_SIG_BLOCK 0x01 /* for blocking signals */ 558 - #define TARGET_SIG_UNBLOCK 0x02 /* for unblocking signals */ 559 - #define TARGET_SIG_SETMASK 0x04 /* for setting the signal mask */ 560 510 561 511 #elif defined(TARGET_MIPS) 562 512