aboutsummaryrefslogtreecommitdiff
path: root/target/mips/sysemu
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-02-21 23:47:55 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-03-07 18:08:12 +0100
commita43972e1769b6b35c2c5826e707ea784242b6287 (patch)
treed59668ba75d3c73c517aaac9c45aba83f9bd9144 /target/mips/sysemu
parentabe45a859b897736d7f428f58d1e5cab4fec4ddf (diff)
downloadqemu-a43972e1769b6b35c2c5826e707ea784242b6287.zip
qemu-a43972e1769b6b35c2c5826e707ea784242b6287.tar.gz
qemu-a43972e1769b6b35c2c5826e707ea784242b6287.tar.bz2
target/mips: Replace [g_]assert(0) -> g_assert_not_reached()
In order to avoid warnings such commit c0a6665c3c ("target/i386: Remove compilation errors when -Werror=maybe-uninitialized"), replace all assert(0) and g_assert(0) by g_assert_not_reached(). Remove any code following g_assert_not_reached(). See previous commit for rationale. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230221232520.14480-4-philmd@linaro.org>
Diffstat (limited to 'target/mips/sysemu')
-rw-r--r--target/mips/sysemu/physaddr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target/mips/sysemu/physaddr.c b/target/mips/sysemu/physaddr.c
index 2970df8..05990aa 100644
--- a/target/mips/sysemu/physaddr.c
+++ b/target/mips/sysemu/physaddr.c
@@ -70,8 +70,7 @@ static int is_seg_am_mapped(unsigned int am, bool eu, int mmu_idx)
/* is this AM mapped in current execution mode */
return ((adetlb_mask << am) < 0);
default:
- assert(0);
- return TLBRET_BADADDR;
+ g_assert_not_reached();
};
}