From 9801e3d21021cb3d925c6beffbefca8e40cf7d33 Mon Sep 17 00:00:00 2001 From: Alex Lin Date: Wed, 14 Sep 2016 09:38:28 -0500 Subject: [PATCH] ICG not setting default checkpointing io correctly. #308 If a checkpoint_io field is found we were or'ing this in to bits already set by default. Clear the bits first. --- trick_source/codegen/Interface_Code_Gen/FieldDescription.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trick_source/codegen/Interface_Code_Gen/FieldDescription.cpp b/trick_source/codegen/Interface_Code_Gen/FieldDescription.cpp index a42b2ce5..c4797939 100644 --- a/trick_source/codegen/Interface_Code_Gen/FieldDescription.cpp +++ b/trick_source/codegen/Interface_Code_Gen/FieldDescription.cpp @@ -267,7 +267,7 @@ void FieldDescription::parseComment(std::string comment) { if ( chkpnt_io_found == true ) { // If a checkpoint I/O spec is found add it to the io field. - io |= (chkpnt_io << 2 ) ; + io = (chkpnt_io << 2 ) + ( io & 3 ) ; } else { // else duplicated the io field to the chkpnt io field. io |= (io << 2 ) ;