Revision a8d3431a target-arm/nwfpe/fpa11.h
b/target-arm/nwfpe/fpa11.h | ||
---|---|---|
22 | 22 |
#ifndef __FPA11_H__ |
23 | 23 |
#define __FPA11_H__ |
24 | 24 |
|
25 |
#include <stdlib.h> |
|
26 |
#include <stdio.h> |
|
27 |
#include <errno.h> |
|
28 |
|
|
25 | 29 |
#define GET_FPA11() (qemufpa) |
26 | 30 |
|
27 | 31 |
/* |
... | ... | |
87 | 91 |
extern void SetRoundingMode(const unsigned int); |
88 | 92 |
extern void SetRoundingPrecision(const unsigned int); |
89 | 93 |
|
90 |
#define get_user(x,y) ((x)=*(y)) |
|
91 |
#define put_user(x,y) (*(y)=(x)) |
|
92 | 94 |
static inline unsigned int readRegister(unsigned int reg) |
93 | 95 |
{ |
94 | 96 |
return (user_registers[(reg)]); |
... | ... | |
128 | 130 |
|
129 | 131 |
unsigned int EmulateAll(unsigned int opcode, FPA11* qfpa, unsigned int* qregs); |
130 | 132 |
|
133 |
/* included only for get_user/put_user macros */ |
|
134 |
#include "qemu.h" |
|
135 |
|
|
131 | 136 |
#endif |
Also available in: Unified diff