mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Add VL_CACHE_LINE_BYTES and use 64 as defult.
This commit is contained in:
+1
-1
@@ -2778,7 +2778,7 @@ void EmitCImp::emitInt(AstNodeModule* modp) {
|
||||
}
|
||||
|
||||
puts("}");
|
||||
if (!VN_IS(modp, Class)) puts(" VL_ATTR_ALIGNED(128)");
|
||||
if (!VN_IS(modp, Class)) puts(" VL_ATTR_ALIGNED(VL_CACHE_LINE_BYTES)");
|
||||
puts(";\n");
|
||||
|
||||
emitIntFuncDecls(modp, false);
|
||||
|
||||
+1
-1
@@ -475,7 +475,7 @@ void EmitCSyms::emitSymHdr() {
|
||||
puts("void "+protect("__Vdeserialize")+"(VerilatedDeserialize& os);\n");
|
||||
}
|
||||
puts("\n");
|
||||
puts("} VL_ATTR_ALIGNED(64);\n");
|
||||
puts("} VL_ATTR_ALIGNED(VL_CACHE_LINE_BYTES);\n");
|
||||
|
||||
ofp()->putsEndGuard();
|
||||
}
|
||||
|
||||
@@ -466,6 +466,7 @@ static void process() {
|
||||
&& !v3Global.opt.xmlOnly()
|
||||
&& !v3Global.opt.dpiHdrOnly()) {
|
||||
// Create AstCUse to determine what class forward declarations/#includes needed in C
|
||||
// Must be before V3EmitC
|
||||
V3CUse::cUseAll(v3Global.rootp());
|
||||
|
||||
// emitcInlines is first, as it may set needHInlines which other emitters read
|
||||
|
||||
Reference in New Issue
Block a user