projects
/
contrib
/
beignet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6058ae4
)
GBE: initialize BTI structure to zero.
author
Ruiling Song
<ruiling.song@intel.com>
Mon, 11 Aug 2014 05:49:01 +0000
(13:49 +0800)
committer
Yang Rong
<rong.r.yang@intel.com>
Tue, 12 Aug 2014 06:35:03 +0000
(14:35 +0800)
Clear to zero to avoid garbage data, as we do not
assign it later for local/constant memory access.
v2:
move initialization code into constructor.
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
backend/src/ir/instruction.hpp
patch
|
blob
|
history
diff --git
a/backend/src/ir/instruction.hpp
b/backend/src/ir/instruction.hpp
index
e4c415e
..
0db950d
100644
(file)
--- a/
backend/src/ir/instruction.hpp
+++ b/
backend/src/ir/instruction.hpp
@@
-38,6
+38,10
@@
namespace ir {
struct BTI {
uint8_t bti[MAX_MIXED_POINTER];
uint8_t count;
+ BTI() : count(0) {
+ memset(bti, 0, MAX_MIXED_POINTER);
+ }
+ ~BTI() {}
};
/*! All opcodes */