CPU: Fix potentially uninitialized variable

This commit is contained in:
darkstar
2018-02-21 20:20:23 +01:00
parent acc429bb37
commit 1510a0fe31
2 changed files with 6 additions and 6 deletions

View File

@@ -116,7 +116,7 @@ static uint32_t ropDEC_rl(uint8_t opcode, uint32_t fetchdat, uint32_t op_32, uin
static uint32_t rop ## name ## _b_rmw(uint8_t opcode, uint32_t fetchdat, uint32_t op_32, uint32_t op_pc, codeblock_t *block) \
{ \
int src_reg, dst_reg; \
x86seg *target_seg; \
x86seg *target_seg = NULL; \
\
if ((fetchdat & 0xc0) == 0xc0) \
{ \
@@ -156,7 +156,7 @@ static uint32_t ropDEC_rl(uint8_t opcode, uint32_t fetchdat, uint32_t op_32, uin
static uint32_t rop ## name ## _w_rmw(uint8_t opcode, uint32_t fetchdat, uint32_t op_32, uint32_t op_pc, codeblock_t *block) \
{ \
int src_reg, dst_reg; \
x86seg *target_seg; \
x86seg *target_seg = NULL; \
\
if ((fetchdat & 0xc0) == 0xc0) \
{ \
@@ -196,7 +196,7 @@ static uint32_t ropDEC_rl(uint8_t opcode, uint32_t fetchdat, uint32_t op_32, uin
static uint32_t rop ## name ## _l_rmw(uint8_t opcode, uint32_t fetchdat, uint32_t op_32, uint32_t op_pc, codeblock_t *block) \
{ \
int src_reg, dst_reg; \
x86seg *target_seg; \
x86seg *target_seg = NULL; \
\
if ((fetchdat & 0xc0) == 0xc0) \
{ \

View File

@@ -39,7 +39,7 @@
static uint32_t rop ## name ## _b_rmw(uint8_t opcode, uint32_t fetchdat, uint32_t op_32, uint32_t op_pc, codeblock_t *block) \
{ \
int src_reg, dst_reg; \
x86seg *target_seg; \
x86seg *target_seg = NULL; \
\
if ((fetchdat & 0xc0) == 0xc0) \
{ \
@@ -76,7 +76,7 @@
static uint32_t rop ## name ## _w_rmw(uint8_t opcode, uint32_t fetchdat, uint32_t op_32, uint32_t op_pc, codeblock_t *block) \
{ \
int src_reg, dst_reg; \
x86seg *target_seg; \
x86seg *target_seg = NULL; \
\
if ((fetchdat & 0xc0) == 0xc0) \
{ \
@@ -113,7 +113,7 @@
static uint32_t rop ## name ## _l_rmw(uint8_t opcode, uint32_t fetchdat, uint32_t op_32, uint32_t op_pc, codeblock_t *block) \
{ \
int src_reg, dst_reg; \
x86seg *target_seg; \
x86seg *target_seg = NULL; \
\
if ((fetchdat & 0xc0) == 0xc0) \
{ \