From 08e81f02a7437bca170fb8a1020d54dce95861d9 Mon Sep 17 00:00:00 2001 From: Derek Bruening Date: Mon, 27 Jul 2020 15:18:16 -0400 Subject: [PATCH] i#4328 AArch64 prefetch and flush instrs: Fix build warning (#4380) Fixes a gcc 9.3 build warning introduced by cdc24cb PR #4341. Issue: #4328 --- clients/drcachesim/tracer/instru.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clients/drcachesim/tracer/instru.cpp b/clients/drcachesim/tracer/instru.cpp index 48be0633a68..2292bdb2527 100644 --- a/clients/drcachesim/tracer/instru.cpp +++ b/clients/drcachesim/tracer/instru.cpp @@ -1,5 +1,5 @@ /* ********************************************************** - * Copyright (c) 2016-2019 Google, Inc. All rights reserved. + * Copyright (c) 2016-2020 Google, Inc. All rights reserved. * **********************************************************/ /* @@ -120,6 +120,7 @@ instru_t::get_aarch64_prefetch_type(ptr_int_t prfop) case 0b100: return TRACE_TYPE_PREFETCH_READ_L3; case 0b101: return TRACE_TYPE_PREFETCH_READ_L3_NT; } + break; case 0b01: // prefetch for instruction switch (target_policy) { case 0b000: return TRACE_TYPE_PREFETCH_INSTR_L1; @@ -129,6 +130,7 @@ instru_t::get_aarch64_prefetch_type(ptr_int_t prfop) case 0b100: return TRACE_TYPE_PREFETCH_INSTR_L3; case 0b101: return TRACE_TYPE_PREFETCH_INSTR_L3_NT; } + break; case 0b10: // prefetch for store switch (target_policy) { case 0b000: return TRACE_TYPE_PREFETCH_WRITE_L1; @@ -138,6 +140,7 @@ instru_t::get_aarch64_prefetch_type(ptr_int_t prfop) case 0b100: return TRACE_TYPE_PREFETCH_WRITE_L3; case 0b101: return TRACE_TYPE_PREFETCH_WRITE_L3_NT; } + break; } # ifdef DEBUG