Skip to content

Commit

Permalink
Mac OS X port (Pierre d'Herbemont)
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1008 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
bellard committed Jul 12, 2004
1 parent 1b039c0 commit cab84d9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dyngen-exec.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ extern int printf(const char *, ...);
#define __hidden
#endif

#ifdef __alpha__
#if defined(__alpha__)
/* Suggested by Richard Henderson. This will result in code like
ldah $0,__op_param1($29) !gprelhigh
lda $0,__op_param1($0) !gprellow
Expand All @@ -197,11 +197,15 @@ extern int __op_param3 __hidden;
#define PARAM2 ({ int _r; asm("" : "=r"(_r) : "0" (&__op_param2)); _r; })
#define PARAM3 ({ int _r; asm("" : "=r"(_r) : "0" (&__op_param3)); _r; })
#else
#if defined(__APPLE__)
static int __op_param1, __op_param2, __op_param3;
#else
extern int __op_param1, __op_param2, __op_param3;
#endif
#define PARAM1 ((long)(&__op_param1))
#define PARAM2 ((long)(&__op_param2))
#define PARAM3 ((long)(&__op_param3))
#endif
#endif /* !defined(__alpha__) */

extern int __op_jmp0, __op_jmp1, __op_jmp2, __op_jmp3;

Expand Down

0 comments on commit cab84d9

Please sign in to comment.