Comment about orphan instance for CapMem
This commit is contained in:
@@ -945,7 +945,13 @@ function MetaInfo getMetaInfo (CapFat cap);
|
|||||||
, baseCorrection : baseCorrection };
|
, baseCorrection : baseCorrection };
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
typedef Bit#(TAdd#(1, CapW)) CapMem;
|
// XXX TODO
|
||||||
|
// to avoid an orphan instance here, we should make CapMem a "newtype",
|
||||||
|
// basically:
|
||||||
|
// typedef struct {
|
||||||
|
// Bit #(TAdd #(1, CapW)) cap;
|
||||||
|
// } CapMem;
|
||||||
|
typedef Bit #(TAdd #(1, CapW)) CapMem;
|
||||||
|
|
||||||
typedef CapFat CapReg;
|
typedef CapFat CapReg;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user