X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=includes%2FRegs.h;h=beb71c9184fded30b85f2ead36d583cb29c5f087;hb=5d379cbe65e406d5c3a848fe7fcd090cafbfeb78;hp=29c04b302fc7c10c69b42f0ce44aba7df8d30704;hpb=304e7fb703e7afddc1ef9be6aab6505e36b63b06;p=ghc-hetmet.git diff --git a/includes/Regs.h b/includes/Regs.h index 29c04b3..beb71c9 100644 --- a/includes/Regs.h +++ b/includes/Regs.h @@ -47,11 +47,6 @@ typedef union { StgTSOPtr t; } StgUnion; -// Urgh.. we don't know the size of an MP_INT here because we haven't -// #included gmp.h. We should really autoconf this, but GMP may not -// be available at ./configure time if we're building it (GMP) locally. -#define MP_INT_WORDS 3 - /* * This is the table that holds shadow-locations for all the STG * registers. The shadow locations are used when: @@ -87,14 +82,6 @@ typedef struct StgRegTable_ { struct bdescr_ *rCurrentNursery; /* Hp/HpLim point into this block */ struct bdescr_ *rCurrentAlloc; /* for allocation using allocate() */ StgWord rHpAlloc; /* number of *bytes* being allocated in heap */ - // rmp_tmp1..rmp_result2 are only used in THREADED_RTS builds to - // avoid per-thread temps in bss, but currently always incldue here - // so we just run mkDerivedConstants once - StgWord rmp_tmp_w[MP_INT_WORDS]; - StgWord rmp_tmp1[MP_INT_WORDS]; - StgWord rmp_tmp2[MP_INT_WORDS]; - StgWord rmp_result1[MP_INT_WORDS]; - StgWord rmp_result2[MP_INT_WORDS]; StgWord rRet; // holds the return code of the thread } StgRegTable; @@ -397,7 +384,7 @@ GLOBAL_REG_DECL(bdescr *,HpAlloc,REG_HpAlloc) -------------------------------------------------------------------------- */ -#define FunReg ((StgFunTable *)((void *)BaseReg - FIELD_OFFSET(struct PartCapability_, r))) +#define FunReg ((StgFunTable *)((void *)BaseReg - STG_FIELD_OFFSET(struct PartCapability_, r))) #define stg_EAGER_BLACKHOLE_info (FunReg->stgEagerBlackholeInfo) #define stg_gc_enter_1 (FunReg->stgGCEnter1)