X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2FRegs.h;h=03942578146f02f4fd173acd2b878eef5be62147;hb=55472d778c441b65e013d27f5228283eef85986c;hp=5374972b526ec399a92a7f10bb5cf678f1ba30e5;hpb=6a18febcb53d54c077da905ac8e233b932516dc5;p=ghc-hetmet.git diff --git a/ghc/includes/Regs.h b/ghc/includes/Regs.h index 5374972..0394257 100644 --- a/ghc/includes/Regs.h +++ b/ghc/includes/Regs.h @@ -22,6 +22,7 @@ #ifndef REGS_H #define REGS_H +#include "gmp.h" // Needs MP_INT definition /* * This is the table that holds shadow-locations for all the STG @@ -90,6 +91,13 @@ 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 SMP builds to avoid per-thread temps + // in bss, but currently always incldue here so we just run mkDerivedConstants once + StgInt rmp_tmp_w; + MP_INT rmp_tmp1; + MP_INT rmp_tmp2; + MP_INT rmp_result1; + MP_INT rmp_result2; #if defined(SMP) || defined(PAR) StgSparkPool rSparks; /* per-task spark pool */ #endif