mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
target/m68k: rename M68K_FEATURE_M68000 to M68K_FEATURE_M68K
The M68K_FEATURE_M68000 feature is misleading in that its name suggests the feature is defined just for Motorola 68000 CPUs, whilst in fact it is defined for all Motorola 680X0 CPUs. In order to avoid confusion with the other M68K_FEATURE_M680X0 constants which define the features available for specific Motorola CPU models, rename M68K_FEATURE_M68000 to M68K_FEATURE_M68K and add comments to clarify its usage. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220917112515.83905-2-mark.cave-ayland@ilande.co.uk> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
214c6002d0
commit
aece90d85d
5 changed files with 75 additions and 74 deletions
|
@ -460,7 +460,7 @@ void m68k_switch_sp(CPUM68KState *env)
|
|||
int new_sp;
|
||||
|
||||
env->sp[env->current_sp] = env->aregs[7];
|
||||
if (m68k_feature(env, M68K_FEATURE_M68000)) {
|
||||
if (m68k_feature(env, M68K_FEATURE_M68K)) {
|
||||
if (env->sr & SR_S) {
|
||||
/* SR:Master-Mode bit unimplemented then ISP is not available */
|
||||
if (!m68k_feature(env, M68K_FEATURE_MSP) || env->sr & SR_M) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue