Skip to content

Commit 25d6223

Browse files
committed
get darwin qemu-irix to compile
1 parent e8b66af commit 25d6223

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

Makefile.objs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ trace-events-subdirs += target/s390x
245245
trace-events-subdirs += target/ppc
246246
trace-events-subdirs += qom
247247
trace-events-subdirs += linux-user
248+
trace-events-subdirs += darwin-user
248249
trace-events-subdirs += qapi
249250
trace-events-subdirs += accel/tcg
250251
trace-events-subdirs += accel/kvm

darwin-user/signal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,6 @@ static void QEMU_NORETURN dump_core_and_abort(CPUArchState *env, int target_sig)
594594
struct sigaction act;
595595

596596
host_sig = target_to_host_signal(target_sig);
597-
// TODO: why isn't this function defined anywhere? macro?
598597
trace_user_force_sig(env, target_sig, host_sig);
599598
gdb_signalled(env, target_sig);
600599

@@ -647,7 +646,6 @@ int queue_signal(CPUArchState *env, int sig, int si_type,
647646
CPUState *cpu = ENV_GET_CPU(env);
648647
TaskState *ts = cpu->opaque;
649648

650-
/* is this a real function? */
651649
trace_user_queue_signal(env, sig);
652650

653651
info->si_code = deposit32(info->si_code, 16, 16, si_type);

darwin-user/trace-events

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# See docs/devel/tracing.txt for syntax documentation.
22

3-
# linux-user/signal.c
3+
# darwin-user/signal.c
44
user_setup_frame(void *env, uint64_t frame_addr) "env=%p frame_addr=0x%"PRIx64
55
user_setup_rt_frame(void *env, uint64_t frame_addr) "env=%p frame_addr=0x%"PRIx64
66
user_do_rt_sigreturn(void *env, uint64_t frame_addr) "env=%p frame_addr=0x%"PRIx64

target/mips/irix_helper.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525

2626
#ifdef TARGET_ABI_IRIX
2727
/* argh, ugly! need TaskState here to access PRDA storage */
28+
#ifdef CONFIG_DARWIN_USER
29+
#include <darwin-user/qemu.h>
30+
#else
2831
#include <linux-user/qemu.h>
32+
#endif
2933

3034
#define DEBUG(x) //x
3135

0 commit comments

Comments
 (0)