Revision 21bd785e
b/hw/pxa2xx.c | ||
---|---|---|
1518 | 1518 |
{ |
1519 | 1519 |
struct pxa2xx_state_s *s; |
1520 | 1520 |
struct pxa2xx_ssp_s *ssp; |
1521 |
char *cpu_model;
|
|
1521 |
char cpu_model[16];
|
|
1522 | 1522 |
int iomemtype, i; |
1523 | 1523 |
s = (struct pxa2xx_state_s *) qemu_mallocz(sizeof(struct pxa2xx_state_s)); |
1524 | 1524 |
|
1525 | 1525 |
s->env = cpu_init(); |
1526 |
asprintf(&cpu_model, "pxa270-%s", revision);
|
|
1526 |
snprintf(cpu_model, sizeof(cpu_model), "pxa270-%s", revision);
|
|
1527 | 1527 |
cpu_arm_set_model(s->env, cpu_model); |
1528 |
free(cpu_model); |
|
1529 | 1528 |
|
1530 | 1529 |
s->pic = pxa2xx_pic_init(0x40d00000, s->env); |
1531 | 1530 |
|
Also available in: Unified diff