mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
MIPS atomic instructions
Implement MIPS ll/sc instructions using atomic compare+exchange. Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
parent
ff867ddcbd
commit
590bc601d8
3 changed files with 124 additions and 24 deletions
|
@ -375,6 +375,9 @@ struct CPUMIPSState {
|
|||
int32_t CP0_Config7;
|
||||
/* XXX: Maybe make LLAddr per-TC? */
|
||||
target_ulong CP0_LLAddr;
|
||||
target_ulong llval;
|
||||
target_ulong llnewval;
|
||||
target_ulong llreg;
|
||||
target_ulong CP0_WatchLo[8];
|
||||
int32_t CP0_WatchHi[8];
|
||||
target_ulong CP0_XContext;
|
||||
|
@ -559,6 +562,8 @@ enum {
|
|||
|
||||
EXCP_LAST = EXCP_CACHE,
|
||||
};
|
||||
/* Dummy exception for conditional stores. */
|
||||
#define EXCP_SC 0x100
|
||||
|
||||
int cpu_mips_exec(CPUMIPSState *s);
|
||||
CPUMIPSState *cpu_mips_init(const char *cpu_model);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue