CPU: Fix potentially uninitialized variable
This commit is contained in:
@@ -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) \
|
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; \
|
int src_reg, dst_reg; \
|
||||||
x86seg *target_seg; \
|
x86seg *target_seg = NULL; \
|
||||||
\
|
\
|
||||||
if ((fetchdat & 0xc0) == 0xc0) \
|
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) \
|
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; \
|
int src_reg, dst_reg; \
|
||||||
x86seg *target_seg; \
|
x86seg *target_seg = NULL; \
|
||||||
\
|
\
|
||||||
if ((fetchdat & 0xc0) == 0xc0) \
|
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) \
|
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; \
|
int src_reg, dst_reg; \
|
||||||
x86seg *target_seg; \
|
x86seg *target_seg = NULL; \
|
||||||
\
|
\
|
||||||
if ((fetchdat & 0xc0) == 0xc0) \
|
if ((fetchdat & 0xc0) == 0xc0) \
|
||||||
{ \
|
{ \
|
||||||
|
|||||||
@@ -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) \
|
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; \
|
int src_reg, dst_reg; \
|
||||||
x86seg *target_seg; \
|
x86seg *target_seg = NULL; \
|
||||||
\
|
\
|
||||||
if ((fetchdat & 0xc0) == 0xc0) \
|
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) \
|
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; \
|
int src_reg, dst_reg; \
|
||||||
x86seg *target_seg; \
|
x86seg *target_seg = NULL; \
|
||||||
\
|
\
|
||||||
if ((fetchdat & 0xc0) == 0xc0) \
|
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) \
|
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; \
|
int src_reg, dst_reg; \
|
||||||
x86seg *target_seg; \
|
x86seg *target_seg = NULL; \
|
||||||
\
|
\
|
||||||
if ((fetchdat & 0xc0) == 0xc0) \
|
if ((fetchdat & 0xc0) == 0xc0) \
|
||||||
{ \
|
{ \
|
||||||
|
|||||||
Reference in New Issue
Block a user