22 |
#ifndef __FPA11_H__ |
#ifndef __FPA11_H__ |
23 |
#define __FPA11_H__ |
#define __FPA11_H__ |
24 |
|
|
25 |
|
#include <stdlib.h> |
26 |
|
#include <stdio.h> |
27 |
|
#include <errno.h> |
28 |
|
|
29 |
#define GET_FPA11() (qemufpa) |
#define GET_FPA11() (qemufpa) |
30 |
|
|
31 |
/* |
/* |
91 |
extern void SetRoundingMode(const unsigned int); |
extern void SetRoundingMode(const unsigned int); |
92 |
extern void SetRoundingPrecision(const unsigned int); |
extern void SetRoundingPrecision(const unsigned int); |
93 |
|
|
|
#define get_user(x,y) ((x)=*(y)) |
|
|
#define put_user(x,y) (*(y)=(x)) |
|
94 |
static inline unsigned int readRegister(unsigned int reg) |
static inline unsigned int readRegister(unsigned int reg) |
95 |
{ |
{ |
96 |
return (user_registers[(reg)]); |
return (user_registers[(reg)]); |
130 |
|
|
131 |
unsigned int EmulateAll(unsigned int opcode, FPA11* qfpa, unsigned int* qregs); |
unsigned int EmulateAll(unsigned int opcode, FPA11* qfpa, unsigned int* qregs); |
132 |
|
|
133 |
|
/* included only for get_user/put_user macros */ |
134 |
|
#include "qemu.h" |
135 |
|
|
136 |
#endif |
#endif |