~fboudra/qemu-linaro/new-upstream-release-1.2.0-2012.09-0ubuntu1

« back to all changes in this revision

Viewing changes to target-sparc/helper.c

  • Committer: Fathi Boudra
  • Author(s): Fathi Boudra
  • Date: 2012-08-21 06:47:11 UTC
  • mfrom: (0.1.16)
  • Revision ID: fathi.boudra@linaro.org-20120821064711-7yxmubp2v8a44xce
Tags: 1.1.50-2012.08-0ubuntu1
* New upstream release.
  - support emulated systems with more than 2G of memory. (LP: #1030588)
* Drop powerpc-missing-include.patch - merged upstream.
* Update debian/control: 
  - drop perl build dependency.
  - add libfdt-dev build dependency.
* Update debian/qemu-keymaps.install file.
* Update debian/rules:
  - update QEMU_CPU for ARM architecture: armv4l -> armv7l.
  - update conf_audio_drv: default to PulseAudio since PA is the default on
    Ubuntu.
  - enable KVM on ARM architecture.
  - enable flat device tree support (--enable-fdt). (LP: #1030594)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include "helper.h"
23
23
#include "sysemu.h"
24
24
 
25
 
void helper_raise_exception(CPUState *env, int tt)
 
25
void helper_raise_exception(CPUSPARCState *env, int tt)
26
26
{
27
27
    env->exception_index = tt;
28
28
    cpu_loop_exit(env);
29
29
}
30
30
 
31
 
void helper_debug(CPUState *env)
 
31
void helper_debug(CPUSPARCState *env)
32
32
{
33
33
    env->exception_index = EXCP_DEBUG;
34
34
    cpu_loop_exit(env);
64
64
}
65
65
#endif
66
66
 
67
 
static target_ulong helper_udiv_common(CPUState *env, target_ulong a,
 
67
static target_ulong helper_udiv_common(CPUSPARCState *env, target_ulong a,
68
68
                                       target_ulong b, int cc)
69
69
{
70
70
    int overflow = 0;
92
92
    return x0;
93
93
}
94
94
 
95
 
target_ulong helper_udiv(CPUState *env, target_ulong a, target_ulong b)
 
95
target_ulong helper_udiv(CPUSPARCState *env, target_ulong a, target_ulong b)
96
96
{
97
97
    return helper_udiv_common(env, a, b, 0);
98
98
}
99
99
 
100
 
target_ulong helper_udiv_cc(CPUState *env, target_ulong a, target_ulong b)
 
100
target_ulong helper_udiv_cc(CPUSPARCState *env, target_ulong a, target_ulong b)
101
101
{
102
102
    return helper_udiv_common(env, a, b, 1);
103
103
}
104
104
 
105
 
static target_ulong helper_sdiv_common(CPUState *env, target_ulong a,
 
105
static target_ulong helper_sdiv_common(CPUSPARCState *env, target_ulong a,
106
106
                                       target_ulong b, int cc)
107
107
{
108
108
    int overflow = 0;
130
130
    return x0;
131
131
}
132
132
 
133
 
target_ulong helper_sdiv(CPUState *env, target_ulong a, target_ulong b)
 
133
target_ulong helper_sdiv(CPUSPARCState *env, target_ulong a, target_ulong b)
134
134
{
135
135
    return helper_sdiv_common(env, a, b, 0);
136
136
}
137
137
 
138
 
target_ulong helper_sdiv_cc(CPUState *env, target_ulong a, target_ulong b)
 
138
target_ulong helper_sdiv_cc(CPUSPARCState *env, target_ulong a, target_ulong b)
139
139
{
140
140
    return helper_sdiv_common(env, a, b, 1);
141
141
}