diff options
author | Gabe Black <gabeblack@google.com> | 2018-03-23 18:11:12 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-03-26 22:35:26 +0000 |
commit | 979b30ec8b5d589eee4c17209733daaad75962dd (patch) | |
tree | b7e71b81843a31db4371d1f88a1bafa62ab91c71 /src/proto | |
parent | 1148c9f2f3f75d04982a7a0b6ce037608affb058 (diff) | |
download | gem5-979b30ec8b5d589eee4c17209733daaad75962dd.tar.xz |
cpu: Proposed fix for backwards compatibility in proto/inst.proto.
I haven't tested this at all, but this may fix backwards compatibility
in inst.proto by removing the oneof construct.
Change-Id: Iba19744791c2c577c3b442402f8cc6dcef8550bd
Reviewed-on: https://gem5-review.googlesource.com/9361
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/inst.proto | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/proto/inst.proto b/src/proto/inst.proto index d561661f1..2a5dd9516 100644 --- a/src/proto/inst.proto +++ b/src/proto/inst.proto @@ -52,10 +52,13 @@ message InstHeader { message Inst { required uint64 pc = 1; - oneof inst_oneof { - fixed32 inst = 2; - bytes inst_bytes = 9; - } + + // Either inst or inst_bytes must be used, but never both. That should be + // enforced by the oneof keyword, but that's not supported in all versions + // of protobuf syntax we need to work with for now. + optional fixed32 inst = 2; + optional bytes inst_bytes = 9; + optional uint32 nodeid = 3; optional uint32 cpuid = 4; optional fixed64 tick = 5; |