Revision b1d8e52e
b/audio/sdlaudio.c | ||
---|---|---|
51 | 51 |
1024 |
52 | 52 |
}; |
53 | 53 |
|
54 |
struct SDLAudioState { |
|
54 |
static struct SDLAudioState {
|
|
55 | 55 |
int exit; |
56 | 56 |
SDL_mutex *mutex; |
57 | 57 |
SDL_sem *sem; |
b/block-vmdk.c | ||
---|---|---|
322 | 322 |
bdrv_close(bs->backing_hd); |
323 | 323 |
} |
324 | 324 |
|
325 |
int parent_open = 0; |
|
325 |
static int parent_open = 0;
|
|
326 | 326 |
static int vmdk_parent_open(BlockDriverState *bs, const char * filename) |
327 | 327 |
{ |
328 | 328 |
BDRVVmdkState *s = bs->opaque; |
b/feature_to_c.sh | ||
---|---|---|
65 | 65 |
done |
66 | 66 |
|
67 | 67 |
echo >> $output |
68 |
echo "extern const char *const xml_builtin[][2];" >> $output |
|
68 | 69 |
echo "const char *const xml_builtin[][2] = {" >> $output |
69 | 70 |
|
70 | 71 |
for input; do |
b/fpu/softfloat-specialize.h | ||
---|---|---|
37 | 37 |
#endif |
38 | 38 |
|
39 | 39 |
/*---------------------------------------------------------------------------- |
40 |
| Underflow tininess-detection mode, statically initialized to default value. |
|
41 |
| (The declaration in `softfloat.h' must match the `int8' type here.) |
|
42 |
*----------------------------------------------------------------------------*/ |
|
43 |
int8 float_detect_tininess = float_tininess_after_rounding; |
|
44 |
|
|
45 |
/*---------------------------------------------------------------------------- |
|
46 | 40 |
| Raises the exceptions specified by `flags'. Floating-point traps can be |
47 | 41 |
| defined here if desired. It is currently not possible for such a trap |
48 | 42 |
| to substitute a result value. If traps are not implemented, this routine |
b/hw/bt-hci.c | ||
---|---|---|
87 | 87 |
}; |
88 | 88 |
|
89 | 89 |
/* LMP layer emulation */ |
90 |
#if 0 |
|
90 | 91 |
static void bt_submit_lmp(struct bt_device_s *bt, int length, uint8_t *data) |
91 | 92 |
{ |
92 | 93 |
int resp, resplen, error, op, tr; |
... | ... | |
386 | 387 |
respdata[0] |= tr; |
387 | 388 |
} |
388 | 389 |
|
389 |
void bt_submit_raw_acl(struct bt_piconet_s *net, int length, uint8_t *data) |
|
390 |
static void bt_submit_raw_acl(struct bt_piconet_s *net, int length, uint8_t *data)
|
|
390 | 391 |
{ |
391 | 392 |
struct bt_device_s *slave; |
392 | 393 |
if (length < 1) |
... | ... | |
411 | 412 |
break; |
412 | 413 |
} |
413 | 414 |
} |
415 |
#endif |
|
414 | 416 |
|
415 | 417 |
/* HCI layer emulation */ |
416 | 418 |
|
... | ... | |
1118 | 1120 |
bt_hci_lmp_mode_change_master(hci, link, acl_active, 0); |
1119 | 1121 |
} |
1120 | 1122 |
|
1121 |
void bt_hci_reset(struct bt_hci_s *hci) |
|
1123 |
static void bt_hci_reset(struct bt_hci_s *hci)
|
|
1122 | 1124 |
{ |
1123 | 1125 |
hci->acl_len = 0; |
1124 | 1126 |
hci->last_cmd = 0; |
b/hw/cbus.c | ||
---|---|---|
435 | 435 |
s->status |= 1 << 5; |
436 | 436 |
} |
437 | 437 |
|
438 |
void retu_head_event(void *retu, int state) |
|
438 |
#if 0 |
|
439 |
static void retu_head_event(void *retu, int state) |
|
439 | 440 |
{ |
440 | 441 |
struct cbus_slave_s *slave = (struct cbus_slave_s *) retu; |
441 | 442 |
struct cbus_retu_s *s = (struct cbus_retu_s *) slave->opaque; |
... | ... | |
452 | 453 |
s->result[retu_adc_head_det] = 123; |
453 | 454 |
} |
454 | 455 |
|
455 |
void retu_hook_event(void *retu, int state) |
|
456 |
static void retu_hook_event(void *retu, int state)
|
|
456 | 457 |
{ |
457 | 458 |
struct cbus_slave_s *slave = (struct cbus_slave_s *) retu; |
458 | 459 |
struct cbus_retu_s *s = (struct cbus_retu_s *) slave->opaque; |
... | ... | |
468 | 469 |
else |
469 | 470 |
s->result[retu_adc_hook_det] = 123; |
470 | 471 |
} |
472 |
#endif |
|
471 | 473 |
|
472 | 474 |
/* Tahvo/Betty */ |
473 | 475 |
struct cbus_tahvo_s { |
b/hw/gt64xxx.c | ||
---|---|---|
891 | 891 |
} |
892 | 892 |
} |
893 | 893 |
|
894 |
extern PCIDevice *piix4_dev; |
|
895 | 894 |
static int pci_irq_levels[4]; |
896 | 895 |
|
897 | 896 |
static void pci_gt64120_set_irq(qemu_irq *pic, int irq_num, int level) |
b/hw/mst_fpga.c | ||
---|---|---|
168 | 168 |
} |
169 | 169 |
} |
170 | 170 |
|
171 |
CPUReadMemoryFunc *mst_fpga_readfn[] = { |
|
171 |
static CPUReadMemoryFunc *mst_fpga_readfn[] = {
|
|
172 | 172 |
mst_fpga_readb, |
173 | 173 |
mst_fpga_readb, |
174 | 174 |
mst_fpga_readb, |
175 | 175 |
}; |
176 |
CPUWriteMemoryFunc *mst_fpga_writefn[] = { |
|
176 |
static CPUWriteMemoryFunc *mst_fpga_writefn[] = {
|
|
177 | 177 |
mst_fpga_writeb, |
178 | 178 |
mst_fpga_writeb, |
179 | 179 |
mst_fpga_writeb, |
b/hw/musicpal.c | ||
---|---|---|
236 | 236 |
/* Wolfson 8750 I2C address */ |
237 | 237 |
#define MP_WM_ADDR 0x34 |
238 | 238 |
|
239 |
const char audio_name[] = "mv88w8618"; |
|
239 |
static const char audio_name[] = "mv88w8618";
|
|
240 | 240 |
|
241 | 241 |
typedef struct musicpal_audio_state { |
242 | 242 |
uint32_t base; |
b/hw/nand.c | ||
---|---|---|
106 | 106 |
# include "nand.c" |
107 | 107 |
|
108 | 108 |
/* Information based on Linux drivers/mtd/nand/nand_ids.c */ |
109 |
struct nand_info_s { |
|
109 |
static const struct nand_info_s {
|
|
110 | 110 |
int size; |
111 | 111 |
int width; |
112 | 112 |
int page_shift; |
b/hw/omap2.c | ||
---|---|---|
2174 | 2174 |
omap_badwidth_write8, |
2175 | 2175 |
}; |
2176 | 2176 |
|
2177 |
struct omap_sti_s *omap_sti_init(struct omap_target_agent_s *ta, |
|
2177 |
static struct omap_sti_s *omap_sti_init(struct omap_target_agent_s *ta,
|
|
2178 | 2178 |
target_phys_addr_t channel_base, qemu_irq irq, omap_clk clk, |
2179 | 2179 |
CharDriverState *chr) |
2180 | 2180 |
{ |
b/hw/omap_clk.c | ||
---|---|---|
1101 | 1101 |
|
1102 | 1102 |
/* If a clock is allowed to idle, it is disabled automatically when |
1103 | 1103 |
* all of clock domains using it are disabled. */ |
1104 |
int omap_clk_is_idle(struct clk *clk) |
|
1104 |
static int omap_clk_is_idle(struct clk *clk)
|
|
1105 | 1105 |
{ |
1106 | 1106 |
struct clk *chld; |
1107 | 1107 |
|
b/hw/openpic.c | ||
---|---|---|
128 | 128 |
IRQ_INTERNAL = 0x02, |
129 | 129 |
IRQ_TIMER = 0x04, |
130 | 130 |
IRQ_SPECIAL = 0x08, |
131 |
} IRQ_src_type;
|
|
131 |
}; |
|
132 | 132 |
|
133 | 133 |
typedef struct IRQ_queue_t { |
134 | 134 |
uint32_t queue[BF_WIDTH(MAX_IRQ)]; |
b/hw/pc.h | ||
---|---|---|
105 | 105 |
int piix3_init(PCIBus *bus, int devfn); |
106 | 106 |
void i440fx_init_memory_mappings(PCIDevice *d); |
107 | 107 |
|
108 |
extern PCIDevice *piix4_dev; |
|
108 | 109 |
int piix4_init(PCIBus *bus, int devfn); |
109 | 110 |
|
110 | 111 |
/* vga.c */ |
b/hw/pckbd.c | ||
---|---|---|
129 | 129 |
int it_shift; |
130 | 130 |
} KBDState; |
131 | 131 |
|
132 |
KBDState kbd_state; |
|
132 |
static KBDState kbd_state;
|
|
133 | 133 |
|
134 | 134 |
/* update irq and KBD_STAT_[MOUSE_]OBF */ |
135 | 135 |
/* XXX: not generating the irqs if KBD_MODE_DISABLE_KBD is set may be |
b/hw/piix_pci.c | ||
---|---|---|
210 | 210 |
|
211 | 211 |
/* PIIX3 PCI to ISA bridge */ |
212 | 212 |
|
213 |
PCIDevice *piix3_dev; |
|
213 |
static PCIDevice *piix3_dev;
|
|
214 | 214 |
PCIDevice *piix4_dev; |
215 | 215 |
|
216 | 216 |
/* just used for simpler irq handling. */ |
b/hw/ppc.c | ||
---|---|---|
806 | 806 |
} |
807 | 807 |
|
808 | 808 |
/* Specific helpers for POWER & PowerPC 601 RTC */ |
809 |
clk_setup_cb cpu_ppc601_rtc_init (CPUState *env) |
|
809 |
#if 0 |
|
810 |
static clk_setup_cb cpu_ppc601_rtc_init (CPUState *env) |
|
810 | 811 |
{ |
811 | 812 |
return cpu_ppc_tb_init(env, 7812500); |
812 | 813 |
} |
814 |
#endif |
|
813 | 815 |
|
814 | 816 |
void cpu_ppc601_store_rtcu (CPUState *env, uint32_t value) |
815 | 817 |
{ |
... | ... | |
1343 | 1345 |
return tmp; |
1344 | 1346 |
} |
1345 | 1347 |
|
1346 |
uint16_t NVRAM_compute_crc (nvram_t *nvram, uint32_t start, uint32_t count) |
|
1348 |
static uint16_t NVRAM_compute_crc (nvram_t *nvram, uint32_t start, uint32_t count)
|
|
1347 | 1349 |
{ |
1348 | 1350 |
uint32_t i; |
1349 | 1351 |
uint16_t crc = 0xFFFF; |
b/hw/ppc.h | ||
---|---|---|
29 | 29 |
extern CPUWriteMemoryFunc *PPC_io_write[]; |
30 | 30 |
extern CPUReadMemoryFunc *PPC_io_read[]; |
31 | 31 |
void PPC_debug_write (void *opaque, uint32_t addr, uint32_t val); |
32 |
|
|
33 |
void ppc40x_irq_init (CPUState *env); |
|
34 |
void ppc6xx_irq_init (CPUState *env); |
|
35 |
void ppc970_irq_init (CPUState *env); |
b/hw/ppc_prep.c | ||
---|---|---|
84 | 84 |
/* ISA IO ports bridge */ |
85 | 85 |
#define PPC_IO_BASE 0x80000000 |
86 | 86 |
|
87 |
#if 0 |
|
87 | 88 |
/* Speaker port 0x61 */ |
88 |
int speaker_data_on; |
|
89 |
int dummy_refresh_clock; |
|
89 |
static int speaker_data_on; |
|
90 |
static int dummy_refresh_clock; |
|
91 |
#endif |
|
90 | 92 |
|
91 | 93 |
static void speaker_ioport_write (void *opaque, uint32_t addr, uint32_t val) |
92 | 94 |
{ |
... | ... | |
518 | 520 |
return ret; |
519 | 521 |
} |
520 | 522 |
|
521 |
CPUWriteMemoryFunc *PPC_prep_io_write[] = { |
|
523 |
static CPUWriteMemoryFunc *PPC_prep_io_write[] = {
|
|
522 | 524 |
&PPC_prep_io_writeb, |
523 | 525 |
&PPC_prep_io_writew, |
524 | 526 |
&PPC_prep_io_writel, |
525 | 527 |
}; |
526 | 528 |
|
527 |
CPUReadMemoryFunc *PPC_prep_io_read[] = { |
|
529 |
static CPUReadMemoryFunc *PPC_prep_io_read[] = {
|
|
528 | 530 |
&PPC_prep_io_readb, |
529 | 531 |
&PPC_prep_io_readw, |
530 | 532 |
&PPC_prep_io_readl, |
b/hw/rtl8139.c | ||
---|---|---|
1255 | 1255 |
RTL8139TallyCounters_clear(&s->tally_counters); |
1256 | 1256 |
} |
1257 | 1257 |
|
1258 |
void RTL8139TallyCounters_clear(RTL8139TallyCounters* counters) |
|
1258 |
static void RTL8139TallyCounters_clear(RTL8139TallyCounters* counters)
|
|
1259 | 1259 |
{ |
1260 | 1260 |
counters->TxOk = 0; |
1261 | 1261 |
counters->RxOk = 0; |
b/hw/soc_dma.c | ||
---|---|---|
23 | 23 |
#include "qemu-timer.h" |
24 | 24 |
#include "soc_dma.h" |
25 | 25 |
|
26 |
void transfer_mem2mem(struct soc_dma_ch_s *ch) |
|
26 |
static void transfer_mem2mem(struct soc_dma_ch_s *ch)
|
|
27 | 27 |
{ |
28 | 28 |
memcpy(ch->paddr[0], ch->paddr[1], ch->bytes); |
29 | 29 |
ch->paddr[0] += ch->bytes; |
30 | 30 |
ch->paddr[1] += ch->bytes; |
31 | 31 |
} |
32 | 32 |
|
33 |
void transfer_mem2fifo(struct soc_dma_ch_s *ch) |
|
33 |
static void transfer_mem2fifo(struct soc_dma_ch_s *ch)
|
|
34 | 34 |
{ |
35 | 35 |
ch->io_fn[1](ch->io_opaque[1], ch->paddr[0], ch->bytes); |
36 | 36 |
ch->paddr[0] += ch->bytes; |
37 | 37 |
} |
38 | 38 |
|
39 |
void transfer_fifo2mem(struct soc_dma_ch_s *ch) |
|
39 |
static void transfer_fifo2mem(struct soc_dma_ch_s *ch)
|
|
40 | 40 |
{ |
41 | 41 |
ch->io_fn[0](ch->io_opaque[0], ch->paddr[1], ch->bytes); |
42 | 42 |
ch->paddr[1] += ch->bytes; |
... | ... | |
47 | 47 |
* oprating systems may not need to use them. */ |
48 | 48 |
static void *fifo_buf; |
49 | 49 |
static int fifo_size; |
50 |
void transfer_fifo2fifo(struct soc_dma_ch_s *ch) |
|
50 |
static void transfer_fifo2fifo(struct soc_dma_ch_s *ch)
|
|
51 | 51 |
{ |
52 | 52 |
if (ch->bytes > fifo_size) |
53 | 53 |
fifo_buf = qemu_realloc(fifo_buf, fifo_size = ch->bytes); |
b/hw/tc58128.c | ||
---|---|---|
58 | 58 |
} |
59 | 59 |
} |
60 | 60 |
|
61 |
void handle_command(tc58128_dev * dev, uint8_t command) |
|
61 |
static void handle_command(tc58128_dev * dev, uint8_t command)
|
|
62 | 62 |
{ |
63 | 63 |
switch (command) { |
64 | 64 |
case 0xff: |
... | ... | |
86 | 86 |
} |
87 | 87 |
} |
88 | 88 |
|
89 |
void handle_address(tc58128_dev * dev, uint8_t data) |
|
89 |
static void handle_address(tc58128_dev * dev, uint8_t data)
|
|
90 | 90 |
{ |
91 | 91 |
switch (dev->state) { |
92 | 92 |
case READ1: |
... | ... | |
119 | 119 |
} |
120 | 120 |
} |
121 | 121 |
|
122 |
uint8_t handle_read(tc58128_dev * dev) |
|
122 |
static uint8_t handle_read(tc58128_dev * dev)
|
|
123 | 123 |
{ |
124 | 124 |
#if 0 |
125 | 125 |
if (dev->address % 0x100000 == 0) |
... | ... | |
131 | 131 |
/* We never mark the device as busy, so interrupts cannot be triggered |
132 | 132 |
XXXXX */ |
133 | 133 |
|
134 |
int tc58128_cb(uint16_t porta, uint16_t portb, |
|
135 |
uint16_t * periph_pdtra, uint16_t * periph_portadir,
|
|
136 |
uint16_t * periph_pdtrb, uint16_t * periph_portbdir)
|
|
134 |
static int tc58128_cb(uint16_t porta, uint16_t portb,
|
|
135 |
uint16_t * periph_pdtra, uint16_t * periph_portadir,
|
|
136 |
uint16_t * periph_pdtrb, uint16_t * periph_portbdir)
|
|
137 | 137 |
{ |
138 | 138 |
int dev; |
139 | 139 |
|
b/hw/tsc2005.c | ||
---|---|---|
23 | 23 |
#include "hw.h" |
24 | 24 |
#include "qemu-timer.h" |
25 | 25 |
#include "console.h" |
26 |
#include "devices.h" |
|
26 | 27 |
|
27 | 28 |
#define TSC_CUT_RESOLUTION(value, p) ((value) >> (16 - (p ? 12 : 10))) |
28 | 29 |
|
... | ... | |
319 | 320 |
tsc2005_pin_update(s); |
320 | 321 |
} |
321 | 322 |
|
322 |
uint8_t tsc2005_txrx_word(void *opaque, uint8_t value) |
|
323 |
static uint8_t tsc2005_txrx_word(void *opaque, uint8_t value)
|
|
323 | 324 |
{ |
324 | 325 |
struct tsc2005_state_s *s = opaque; |
325 | 326 |
uint32_t ret = 0; |
b/hw/tsc210x.c | ||
---|---|---|
26 | 26 |
#include "qemu-timer.h" |
27 | 27 |
#include "console.h" |
28 | 28 |
#include "omap.h" /* For struct i2s_codec_s and struct uwire_slave_s */ |
29 |
#include "devices.h" |
|
29 | 30 |
|
30 | 31 |
#define TSC_DATA_REGISTERS_PAGE 0x0 |
31 | 32 |
#define TSC_CONTROL_REGISTERS_PAGE 0x1 |
b/hw/tusb6010.c | ||
---|---|---|
25 | 25 |
#include "usb.h" |
26 | 26 |
#include "omap.h" |
27 | 27 |
#include "irq.h" |
28 |
#include "devices.h" |
|
28 | 29 |
|
29 | 30 |
struct tusb_s { |
30 | 31 |
int iomemtype[2]; |
b/hw/zaurus.c | ||
---|---|---|
155 | 155 |
} |
156 | 156 |
} |
157 | 157 |
|
158 |
CPUReadMemoryFunc *scoop_readfn[] = { |
|
158 |
static CPUReadMemoryFunc *scoop_readfn[] = {
|
|
159 | 159 |
scoop_readb, |
160 | 160 |
scoop_readb, |
161 | 161 |
scoop_readb, |
162 | 162 |
}; |
163 |
CPUWriteMemoryFunc *scoop_writefn[] = { |
|
163 |
static CPUWriteMemoryFunc *scoop_writefn[] = {
|
|
164 | 164 |
scoop_writeb, |
165 | 165 |
scoop_writeb, |
166 | 166 |
scoop_writeb, |
... | ... | |
252 | 252 |
|
253 | 253 |
#define MAGIC_CHG(a, b, c, d) ((d << 24) | (c << 16) | (b << 8) | a) |
254 | 254 |
|
255 |
struct __attribute__ ((__packed__)) sl_param_info { |
|
255 |
static struct __attribute__ ((__packed__)) sl_param_info {
|
|
256 | 256 |
uint32_t comadj_keyword; |
257 | 257 |
int32_t comadj; |
258 | 258 |
|
b/linux-user/flatload.c | ||
---|---|---|
102 | 102 |
return p; |
103 | 103 |
} |
104 | 104 |
|
105 |
int target_pread(int fd, abi_ulong ptr, abi_ulong len, |
|
106 |
abi_ulong offset) |
|
105 |
static int target_pread(int fd, abi_ulong ptr, abi_ulong len,
|
|
106 |
abi_ulong offset)
|
|
107 | 107 |
{ |
108 | 108 |
void *buf; |
109 | 109 |
int ret; |
... | ... | |
336 | 336 |
/****************************************************************************/ |
337 | 337 |
|
338 | 338 |
/* ??? This does not handle endianness correctly. */ |
339 |
void old_reloc(struct lib_info *libinfo, uint32_t rl) |
|
339 |
static void old_reloc(struct lib_info *libinfo, uint32_t rl)
|
|
340 | 340 |
{ |
341 | 341 |
#ifdef DEBUG |
342 | 342 |
char *segment[] = { "TEXT", "DATA", "BSS", "*UNKNOWN*" }; |
b/linux-user/main.c | ||
---|---|---|
283 | 283 |
} |
284 | 284 |
|
285 | 285 |
#ifdef TARGET_X86_64 |
286 |
uint64_t idt_table[512]; |
|
286 |
static uint64_t idt_table[512];
|
|
287 | 287 |
|
288 | 288 |
static void set_gate64(void *ptr, unsigned int type, unsigned int dpl, |
289 | 289 |
uint64_t addr, unsigned int sel) |
... | ... | |
303 | 303 |
set_gate64(idt_table + n * 2, 0, dpl, 0, 0); |
304 | 304 |
} |
305 | 305 |
#else |
306 |
uint64_t idt_table[256]; |
|
306 |
static uint64_t idt_table[256];
|
|
307 | 307 |
|
308 | 308 |
static void set_gate(void *ptr, unsigned int type, unsigned int dpl, |
309 | 309 |
uint32_t addr, unsigned int sel) |
b/linux-user/syscall.c | ||
---|---|---|
2500 | 2500 |
#if defined(TARGET_I386) |
2501 | 2501 |
|
2502 | 2502 |
/* NOTE: there is really one LDT for all the threads */ |
2503 |
uint8_t *ldt_table; |
|
2503 |
static uint8_t *ldt_table;
|
|
2504 | 2504 |
|
2505 | 2505 |
static abi_long read_ldt(abi_ulong ptr, unsigned long bytecount) |
2506 | 2506 |
{ |
b/monitor.c | ||
---|---|---|
75 | 75 |
|
76 | 76 |
static void monitor_start_input(void); |
77 | 77 |
|
78 |
CPUState *mon_cpu = NULL; |
|
78 |
static CPUState *mon_cpu = NULL;
|
|
79 | 79 |
|
80 | 80 |
void term_flush(void) |
81 | 81 |
{ |
b/qemu-nbd.c | ||
---|---|---|
36 | 36 |
|
37 | 37 |
#define NBD_BUFFER_SIZE (1024*1024) |
38 | 38 |
|
39 |
int verbose; |
|
39 |
static int verbose;
|
|
40 | 40 |
|
41 | 41 |
static void usage(const char *name) |
42 | 42 |
{ |
b/sparc-dis.c | ||
---|---|---|
2181 | 2181 |
|
2182 | 2182 |
/* Return the name for membar value VALUE or NULL if not found. */ |
2183 | 2183 |
|
2184 |
const char * |
|
2184 |
static const char *
|
|
2185 | 2185 |
sparc_decode_membar (value) |
2186 | 2186 |
int value; |
2187 | 2187 |
{ |
... | ... | |
2203 | 2203 |
|
2204 | 2204 |
/* Return the name for prefetch value VALUE or NULL if not found. */ |
2205 | 2205 |
|
2206 |
const char * |
|
2206 |
static const char *
|
|
2207 | 2207 |
sparc_decode_prefetch (value) |
2208 | 2208 |
int value; |
2209 | 2209 |
{ |
... | ... | |
2226 | 2226 |
|
2227 | 2227 |
/* Return the name for sparclet cpreg value VALUE or NULL if not found. */ |
2228 | 2228 |
|
2229 |
const char * |
|
2229 |
static const char *
|
|
2230 | 2230 |
sparc_decode_sparclet_cpreg (value) |
2231 | 2231 |
int value; |
2232 | 2232 |
{ |
b/target-arm/op_helper.c | ||
---|---|---|
31 | 31 |
|
32 | 32 |
/* thread support */ |
33 | 33 |
|
34 |
spinlock_t global_cpu_lock = SPIN_LOCK_UNLOCKED; |
|
34 |
static spinlock_t global_cpu_lock = SPIN_LOCK_UNLOCKED;
|
|
35 | 35 |
|
36 | 36 |
void cpu_lock(void) |
37 | 37 |
{ |
b/target-arm/translate.c | ||
---|---|---|
756 | 756 |
dead_tmp(tmp); |
757 | 757 |
} |
758 | 758 |
|
759 |
const uint8_t table_logic_cc[16] = { |
|
759 |
static const uint8_t table_logic_cc[16] = {
|
|
760 | 760 |
1, /* and */ |
761 | 761 |
1, /* xor */ |
762 | 762 |
0, /* sub */ |
b/target-i386/op_helper.c | ||
---|---|---|
96 | 96 |
|
97 | 97 |
/* broken thread support */ |
98 | 98 |
|
99 |
spinlock_t global_cpu_lock = SPIN_LOCK_UNLOCKED; |
|
99 |
static spinlock_t global_cpu_lock = SPIN_LOCK_UNLOCKED;
|
|
100 | 100 |
|
101 | 101 |
void helper_lock(void) |
102 | 102 |
{ |
b/target-sh4/translate.c | ||
---|---|---|
459 | 459 |
return; \ |
460 | 460 |
} |
461 | 461 |
|
462 |
void _decode_opc(DisasContext * ctx) |
|
462 |
static void _decode_opc(DisasContext * ctx)
|
|
463 | 463 |
{ |
464 | 464 |
#if 0 |
465 | 465 |
fprintf(stderr, "Translating opcode 0x%04x\n", ctx->opcode); |
... | ... | |
1762 | 1762 |
ctx->bstate = BS_EXCP; |
1763 | 1763 |
} |
1764 | 1764 |
|
1765 |
void decode_opc(DisasContext * ctx) |
|
1765 |
static void decode_opc(DisasContext * ctx)
|
|
1766 | 1766 |
{ |
1767 | 1767 |
uint32_t old_flags = ctx->flags; |
1768 | 1768 |
|
b/tcg/tcg.c | ||
---|---|---|
63 | 63 |
#undef DEF2 |
64 | 64 |
}; |
65 | 65 |
|
66 |
TCGRegSet tcg_target_available_regs[2]; |
|
67 |
TCGRegSet tcg_target_call_clobber_regs; |
|
66 |
static TCGRegSet tcg_target_available_regs[2];
|
|
67 |
static TCGRegSet tcg_target_call_clobber_regs;
|
|
68 | 68 |
|
69 | 69 |
/* XXX: move that inside the context */ |
70 | 70 |
uint16_t *gen_opc_ptr; |
Also available in: Unified diff