提交 7f7454ec 编写于 作者: A Anthony Liguori

lm32: fix build breakage due to uninitialized variable 'r'

gcc 4.5.2 correctly complains that r is potentially uninitialized in this
function.
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 2d56a546
......@@ -163,7 +163,7 @@ static int pfpu_decode_insn(MilkymistPFPUState *s)
uint32_t reg_b = (insn >> 11) & 0x7f;
uint32_t op = (insn >> 7) & 0xf;
uint32_t reg_d = insn & 0x7f;
uint32_t r;
uint32_t r = 0;
int latency = 0;
switch (op) {
......
seabios @ 06d0bdd9
Subproject commit cc975646af69f279396d4d5e1379ac6af80ee637
Subproject commit 06d0bdd9e2e20377b3180e4986b14c8549b393e4
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册