~ubuntu-branches/ubuntu/hardy/kvm/hardy-backports

« back to all changes in this revision

Viewing changes to qemu/target-ia64/fake-exec.c

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2008-02-26 13:10:57 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: james.westby@ubuntu.com-20080226131057-s67x6l89mtjw1x9b
Tags: 1:62+dfsg-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * fake-exec.c for ia64.
 
3
 *
 
4
 * This is a file for stub functions so that compilation is possible
 
5
 * when TCG CPU emulation is disabled during compilation.
 
6
 *
 
7
 * Copyright 2007 IBM Corporation.
 
8
 * Added by & Authors:
 
9
 *      Jerone Young <jyoung5@us.ibm.com>
 
10
 *
 
11
 * Copyright 2008 Intel Corporation.
 
12
 * Added by Xiantao Zhang <xiantao.zhang@intel.com>
 
13
 *
 
14
 * This work is licensed under the GNU GPL licence version 2 or later.
 
15
 *
 
16
 */
 
17
#include "exec.h"
 
18
#include "cpu.h"
 
19
 
 
20
int code_copy_enabled = 0;
 
21
 
 
22
void cpu_gen_init(void)
 
23
{
 
24
}
 
25
 
 
26
unsigned long code_gen_max_block_size(void)
 
27
{
 
28
    return 32;
 
29
}
 
30
 
 
31
int cpu_ia64_gen_code(CPUState *env, TranslationBlock *tb, int *gen_code_size_ptr)
 
32
{
 
33
    return 0;
 
34
}
 
35
 
 
36
void flush_icache_range(unsigned long start, unsigned long stop)
 
37
{
 
38
    while (start < stop) {
 
39
        asm volatile ("fc %0" :: "r"(start));
 
40
        start += 32;
 
41
    }
 
42
    asm volatile (";;sync.i;;srlz.i;;");
 
43
}
 
44