Skip to content

Commit

Permalink
Merge branch 'master' of git://git.qemu.org/qemu into x86-next
Browse files Browse the repository at this point in the history
  • Loading branch information
ehabkost committed Jun 25, 2018
2 parents 6b2942f + 35e238c commit 0b6e9aa
Show file tree
Hide file tree
Showing 16 changed files with 282 additions and 60 deletions.
4 changes: 0 additions & 4 deletions accel/stubs/tcg-stub.c
Expand Up @@ -21,10 +21,6 @@ void tb_flush(CPUState *cpu)
{
}

void tb_unlock(void)
{
}

void tlb_set_dirty(CPUState *cpu, target_ulong vaddr)
{
}
3 changes: 1 addition & 2 deletions audio/audio.c
Expand Up @@ -335,9 +335,8 @@ static int audio_get_conf_int (const char *key, int defval, int *defaultp)
char *strval;

strval = getenv (key);
if (strval) {
if (strval && !qemu_strtoi(strval, NULL, 10, &val)) {
*defaultp = 0;
val = atoi (strval);
return val;
}
else {
Expand Down
4 changes: 4 additions & 0 deletions cpus.c
Expand Up @@ -1355,6 +1355,7 @@ static int tcg_cpu_exec(CPUState *cpu)
int64_t ti;
#endif

assert(tcg_enabled());
#ifdef CONFIG_PROFILER
ti = profile_getclock();
#endif
Expand Down Expand Up @@ -1397,6 +1398,7 @@ static void *qemu_tcg_rr_cpu_thread_fn(void *arg)
{
CPUState *cpu = arg;

assert(tcg_enabled());
rcu_register_thread();
tcg_register_thread();

Expand Down Expand Up @@ -1631,6 +1633,7 @@ static void *qemu_tcg_cpu_thread_fn(void *arg)
{
CPUState *cpu = arg;

assert(tcg_enabled());
g_assert(!use_icount);

rcu_register_thread();
Expand Down Expand Up @@ -1854,6 +1857,7 @@ static void qemu_tcg_init_vcpu(CPUState *cpu)
static QemuThread *single_tcg_cpu_thread;
static int tcg_region_inited;

assert(tcg_enabled());
/*
* Initialize TCG regions--once. Now is a good time, because:
* (1) TCG's init context, prologue and target globals have been set up.
Expand Down
3 changes: 3 additions & 0 deletions exec.c
Expand Up @@ -1323,6 +1323,7 @@ static void tlb_reset_dirty_range_all(ram_addr_t start, ram_addr_t length)
RAMBlock *block;
ram_addr_t end;

assert(tcg_enabled());
end = TARGET_PAGE_ALIGN(start + length);
start &= TARGET_PAGE_MASK;

Expand Down Expand Up @@ -2655,6 +2656,7 @@ void memory_notdirty_write_prepare(NotDirtyInfo *ndi,
void memory_notdirty_write_complete(NotDirtyInfo *ndi)
{
if (ndi->pages) {
assert(tcg_enabled());
page_collection_unlock(ndi->pages);
ndi->pages = NULL;
}
Expand Down Expand Up @@ -3046,6 +3048,7 @@ static void tcg_commit(MemoryListener *listener)
CPUAddressSpace *cpuas;
AddressSpaceDispatch *d;

assert(tcg_enabled());
/* since each CPU stores ram addresses in its TLB cache, we must
reset the modified entries */
cpuas = container_of(listener, CPUAddressSpace, tcg_as_listener);
Expand Down

0 comments on commit 0b6e9aa

Please sign in to comment.