]> git.proxmox.com Git - mirror_qemu.git/commit - target/loongarch/cpu.c
target/loongarch/cpu: Fix cpucfg default value
authorXiaojuan Yang <yangxiaojuan@loongson.cn>
Fri, 15 Jul 2022 06:48:29 +0000 (14:48 +0800)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 19 Jul 2022 16:23:58 +0000 (21:53 +0530)
commitfa90456f78b5f49515bbf6393fa10a1d70a5bf86
treebedefeae96729f1ef2dda0897f5035f49c8188f5
parent064357041d64331e3dbc18629d07abf88ce0f6bb
target/loongarch/cpu: Fix cpucfg default value

We should config cpucfg[20] to set value for the scache's ways, sets,
and size arguments when loongarch cpu init. However, the old code
wirte 'sets argument' twice, so we change one of them to 'size argument'.

Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220715064829.1521482-1-yangxiaojuan@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/loongarch/cpu.c