1 *** qemu-0.12.5/vl.c 2010-07-22 14:39:04.000000000 +0200
2 --- qemu-0.12.5-patched/vl.c 2010-11-12 13:14:42.000000000 +0100
6 unsigned int nb_prom_envs = 0;
7 const char *prom_envs[MAX_PROM_ENVS];
9 + static void e9write(void *opaque, uint32_t address, uint32_t value);
11 typedef struct FWBootEntry FWBootEntry;
19 + e9write(0, 0, '\n');
22 static void version(void)
23 *************** static int virtcon_parse(const char *dev
29 + static void e9write(void *opaque, uint32_t address, uint32_t value)
31 + static uint32_t last = -1;
32 + static size_t pos = 0;
33 + static char buffer[256];
38 + printf("%s\n", buffer);
43 + else if (value == '\n')
47 + printf("%s\n", buffer);
55 + buffer[pos++] = (char) value;
57 + if (pos+2 >= sizeof(buffer))
59 + printf("%s", buffer);
67 int main(int argc, char **argv, char **envp)
69 const char *gdbstub_dev = NULL;
70 *************** int main(int argc, char **argv, char **e
76 + /* register the 0xe9 port to the e9write function */
77 + register_ioport_write(0xe9, 1, 1, e9write, NULL);