diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-20 22:09:37 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-20 23:01:08 -0500 |
commit | 52e431959c8a063b4d79db47e9bdcc5a8f1d21f1 (patch) | |
tree | 9aa05d6e05ed83e67bf014f6745a3081b8407dc5 /tcg | |
parent | 2be0e4ec99e6f88c4c48a14bdb5dd1f6413e4073 (diff) | |
download | qemu-52e431959c8a063b4d79db47e9bdcc5a8f1d21f1.tar.gz qemu-52e431959c8a063b4d79db47e9bdcc5a8f1d21f1.tar.bz2 qemu-52e431959c8a063b4d79db47e9bdcc5a8f1d21f1.zip |
Use glib memory allocation and free functions
qemu_malloc/qemu_free no longer exist after this commit.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'tcg')
-rw-r--r-- | tcg/tcg.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -166,7 +166,7 @@ void *tcg_malloc_internal(TCGContext *s, int size) if (size > TCG_POOL_CHUNK_SIZE) { /* big malloc: insert a new pool (XXX: could optimize) */ - p = qemu_malloc(sizeof(TCGPool) + size); + p = g_malloc(sizeof(TCGPool) + size); p->size = size; if (s->pool_current) s->pool_current->next = p; @@ -183,7 +183,7 @@ void *tcg_malloc_internal(TCGContext *s, int size) if (!p->next) { new_pool: pool_size = TCG_POOL_CHUNK_SIZE; - p = qemu_malloc(sizeof(TCGPool) + pool_size); + p = g_malloc(sizeof(TCGPool) + pool_size); p->size = pool_size; p->next = NULL; if (s->pool_current) @@ -227,8 +227,8 @@ void tcg_context_init(TCGContext *s) total_args += n; } - args_ct = qemu_malloc(sizeof(TCGArgConstraint) * total_args); - sorted_args = qemu_malloc(sizeof(int) * total_args); + args_ct = g_malloc(sizeof(TCGArgConstraint) * total_args); + sorted_args = g_malloc(sizeof(int) * total_args); for(op = 0; op < NB_OPS; op++) { def = &tcg_op_defs[op]; |