Andrea Mondelli has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/16082
Change subject: scons: use of data len const in Embed python files
......................................................................
scons: use of data len const in Embed python files
The blobToCpp function adds the follow variable:
symbol_len_declaration = 'const std::size_t {}_len'.format(symbol)
but the size defined in the EmbeddedPython is still a raw number.
This patch add the symbol_len_declaration variable to the object.
Change-Id: I4d569a8ed4ba095ae6ddda02c16a078e4b520a8d
---
M src/SConscript
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/SConscript b/src/SConscript
index 74adf3c..c57c179 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -1165,7 +1165,7 @@
${{c_str(pysource.abspath)}},
${{c_str(pysource.modpath)}},
data_${sym},
- ${{len(data)}},
+ data_${sym}_len,
${{len(marshalled)}});
} // anonymous namespace
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/16082
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I4d569a8ed4ba095ae6ddda02c16a078e4b520a8d
Gerrit-Change-Number: 16082
Gerrit-PatchSet: 1
Gerrit-Owner: Andrea Mondelli <andrea.monde...@ucf.edu>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev