diff options
author | Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> | 2018-02-19 00:42:21 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> | 2018-03-06 19:45:34 +0000 |
commit | 1c4606bc4d2589152eb09a74c8fe62e3004097a7 (patch) | |
tree | fbb0b25947febb72b08ddad90d76e1cd007c00ed /src/dev | |
parent | 35ea4a3d5e9b879fc58c39649ca60eb83e57ff47 (diff) | |
download | gem5-1c4606bc4d2589152eb09a74c8fe62e3004097a7.tar.xz |
dev: Don't fall through into BRAR after RFDR case
If the switch block inside the RFDR case selects the non-default case
and breaks out, it will fall through into the BRAR case, which seems
incorrect. Put in a break to ensure that it breaks out of the parent
switch block as well.
Change-Id: Ie4cedf66954b7e8f4b884ad9e3a653968bbfaef7
Signed-off-by: Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com>
Reviewed-on: https://gem5-review.googlesource.com/8563
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/dev')
-rw-r--r-- | src/dev/net/ns_gige.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dev/net/ns_gige.cc b/src/dev/net/ns_gige.cc index dbed29f8b..e1289b4b1 100644 --- a/src/dev/net/ns_gige.cc +++ b/src/dev/net/ns_gige.cc @@ -742,6 +742,7 @@ NSGigE::write(PacketPtr pkt) panic("writing RFDR for something other than pattern matching " "or hashing! %#x\n", rfaddr); } + break; case BRAR: regs.brar = reg; |