Skip to content

Commit

Permalink
i#4328 AArch64 prefetch and flush instrs: Fix build warning (#4380)
Browse files Browse the repository at this point in the history
Fixes a gcc 9.3 build warning introduced by cdc24cb PR #4341.

Issue: #4328
  • Loading branch information
derekbruening authored Jul 27, 2020
1 parent cdc24cb commit 08e81f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clients/drcachesim/tracer/instru.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2016-2019 Google, Inc. All rights reserved.
* Copyright (c) 2016-2020 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 08e81f0

Please sign in to comment.