summaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-10 19:18:40 +0000
committermalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-10 19:18:40 +0000
commit933538ba553a59ed04f74eabffad5ab63ebb57bd (patch)
treecad585902aebf14be473f75fe5bf9c09b4e1b7a1 /linux-user
parentde9c7008151324a1512b438b5bc673ec730cedc8 (diff)
downloadqemu-933538ba553a59ed04f74eabffad5ab63ebb57bd.tar.gz
qemu-933538ba553a59ed04f74eabffad5ab63ebb57bd.tar.bz2
qemu-933538ba553a59ed04f74eabffad5ab63ebb57bd.zip
Introduce and use cache-utils.[ch]
Thanks to Segher Boessenkool and Holis Blanchard. AIX and Darwin cache inquiry: http://gcc.gnu.org/ml/gcc-patches/2007-08/msg00388.html Auxiliary vectors: http://manugarg.googlepages.com/aboutelfauxiliaryvectors git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5973 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/linux-user/main.c b/linux-user/main.c
index 66be107611..52322d4a7f 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -27,6 +27,7 @@
#include "qemu.h"
#include "qemu-common.h"
+#include "cache-utils.h"
/* For tb_lock */
#include "exec-all.h"
@@ -2214,7 +2215,7 @@ void init_task_state(TaskState *ts)
ts->sigqueue_table[i].next = NULL;
}
-int main(int argc, char **argv)
+int main(int argc, char **argv, char **envp)
{
const char *filename;
const char *cpu_model;
@@ -2231,6 +2232,8 @@ int main(int argc, char **argv)
if (argc <= 1)
usage();
+ qemu_cache_utils_init(envp);
+
/* init debug */
cpu_set_log_filename(DEBUG_LOGFILE);