From ec64f77a6d0fe2fc69c3eae0a5cb5d3f33b1c840 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Fri, 10 May 2024 23:39:54 +0200 Subject: [PATCH] clean-up --- mmu.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mmu.cpp b/mmu.cpp index b943722..bdf66c7 100644 --- a/mmu.cpp +++ b/mmu.cpp @@ -376,9 +376,7 @@ uint32_t mmu::calculate_physical_address(cpu *const c, const int run_mode, const if (trap_on_failure) { { - auto rc = get_trap_action(run_mode, d, apf, is_write); - auto trap_action = rc.first; - int access_control = rc.second; + const auto [ trap_action, access_control ] = get_trap_action(run_mode, d, apf, is_write); if (trap_action != T_PROCEED) [[unlikely]] { if (is_write)