diff options
author | Richard Henderson <rth@twiddle.net> | 2013-12-07 10:44:52 +1300 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-12-23 15:32:36 +0100 |
commit | eb2535f411c2201cd6f79e8d2b4e3f4c5b765729 (patch) | |
tree | bd0a03525133babf50cf38cd2d8107505569feec /cputlb.c | |
parent | 4fadb3bb570c5a665bd6f7e300d63c306e67b668 (diff) |
cputlb: Tidy memset() of arrays
Don't duplicate the array length computation in the memset()
when plain sizeof() can produce the correct results.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'cputlb.c')
-rw-r--r-- | cputlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -57,7 +57,7 @@ void tlb_flush(CPUArchState *env, int flush_global) cpu->current_tb = NULL; memset(env->tlb_table, -1, sizeof(env->tlb_table)); - memset(env->tb_jmp_cache, 0, TB_JMP_CACHE_SIZE * sizeof (void *)); + memset(env->tb_jmp_cache, 0, sizeof(env->tb_jmp_cache)); env->tlb_flush_addr = -1; env->tlb_flush_mask = 0; |