rv32cpu: allocated with calloc (for debug)
This commit is contained in:
parent
cb98752b67
commit
6b9e5c766b
@ -39,7 +39,7 @@ static void cpu_print_instruction(instruction_t* instruction);
|
|||||||
|
|
||||||
void cpu_init()
|
void cpu_init()
|
||||||
{
|
{
|
||||||
cpu0 = malloc(sizeof(rv32_cpu_t));
|
cpu0 = calloc(1, sizeof(rv32_cpu_t));
|
||||||
cpu0->regs.zero = 0;
|
cpu0->regs.zero = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user