mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix and improve coroutines for Darwin (macOS) ppc/ppc64. (#5975)
This commit is contained in:
parent
fc3137ef54
commit
567725ed30
Notes:
git
2022-10-19 10:50:05 +00:00
Merged-By: ioquatix <samuel@codeotaku.com>
17 changed files with 196 additions and 120 deletions
|
@ -55,7 +55,7 @@ static void vm_insns_counter_count_insn(int insn) {}
|
|||
#elif defined(__GNUC__) && defined(__i386__)
|
||||
#define DECL_SC_REG(type, r, reg) register type reg_##r __asm__("e" reg)
|
||||
|
||||
#elif defined(__GNUC__) && defined(__powerpc64__)
|
||||
#elif defined(__GNUC__) && (defined(__powerpc64__) || defined(__POWERPC__))
|
||||
#define DECL_SC_REG(type, r, reg) register type reg_##r __asm__("r" reg)
|
||||
|
||||
#elif defined(__GNUC__) && defined(__aarch64__)
|
||||
|
@ -92,7 +92,7 @@ vm_exec_core(rb_execution_context_t *ec, VALUE initial)
|
|||
DECL_SC_REG(rb_control_frame_t *, cfp, "15");
|
||||
#define USE_MACHINE_REGS 1
|
||||
|
||||
#elif defined(__GNUC__) && defined(__powerpc64__)
|
||||
#elif defined(__GNUC__) && (defined(__powerpc64__) || defined(__POWERPC__))
|
||||
DECL_SC_REG(const VALUE *, pc, "14");
|
||||
DECL_SC_REG(rb_control_frame_t *, cfp, "15");
|
||||
#define USE_MACHINE_REGS 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue