mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
target-m68k: update CPU flags management
Copied from target-i386 Signed-off-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
91f90d7191
commit
9fdb533fb1
2 changed files with 86 additions and 40 deletions
|
@ -167,7 +167,7 @@ int cpu_m68k_signal_handler(int host_signum, void *pinfo,
|
|||
* using this information. Condition codes are not generated if they
|
||||
* are only needed for conditional branches.
|
||||
*/
|
||||
enum {
|
||||
typedef enum {
|
||||
CC_OP_DYNAMIC, /* Use env->cc_op */
|
||||
CC_OP_FLAGS, /* CC_DEST = CVZN, CC_SRC = unused */
|
||||
CC_OP_LOGICB, /* CC_DEST = result, CC_SRC = unused */
|
||||
|
@ -188,7 +188,8 @@ enum {
|
|||
CC_OP_SHIFTB, /* CC_DEST = result, CC_SRC = carry */
|
||||
CC_OP_SHIFTW, /* CC_DEST = result, CC_SRC = carry */
|
||||
CC_OP_SHIFT, /* CC_DEST = result, CC_SRC = carry */
|
||||
};
|
||||
CC_OP_NB,
|
||||
} CCOp;
|
||||
|
||||
#define CCF_C 0x01
|
||||
#define CCF_V 0x02
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue