The declaration of clk_setup is missing in
qemu/hw/virtex_ml507.c:
static void virtex_init(ram_addr_t ram_size,
const char *boot_device,
const char *kernel_filename,
const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model)
{
...
<no decl for clk_setup>
...
memset(clk_setup, 0, sizeof(clk_setup));
This SEGVs because clk_setup is an inline function defined in ppc.h.
(I presume that the linker generates an out-of-line copy.)
It isn't clear what the declaration should be. In ppc405_uc.c, there
is a decl:
clk_setup_t clk_setup[PPC405EP_CLK_NB];
--
Michael Eager [email protected]
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077