--- nono/m680x0/testea.cpp 2026/04/29 17:04:28 1.1 +++ nono/m680x0/testea.cpp 2026/04/29 17:04:34 1.1.1.2 @@ -1,12 +1,13 @@ // // nono -// Copyright (C) 2018 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt // #include "m68030ea.cpp" -uint16 g_fetch[5]; -int g_fetch_ptr; +static uint16 g_fetch[5]; +static int g_fetch_ptr; // ダミーのフェッチルーチン // グローバル変数 g_fetch[] で指定された値を順に返す @@ -53,12 +54,12 @@ panic(const char *func, const char *fmt, abort(); } -m68kcpu *cpu; -int tested; -int failed; +static m68kcpu *cpu; +static int tested; +static int failed; // 拡張 EA の全組み合わせを試す網羅テスト -void +static void test_ea_ix() { uint32 ea; @@ -134,12 +135,12 @@ test_ea_ix() } } -const char *scalestr[] = { +static const char *scalestr[] = { "", "*2", "*4", "*8" }; // 拡張 EA Full format の指定パターンのテストを生成する。 -void +static void make_ea_ix_full(int wl, int scale, int bs, int is, int bdsz, int iis) { uint32 data; @@ -251,7 +252,7 @@ make_ea_ix_full(int wl, int scale, int b } // 拡張 EA 全パターンのテストを生成する。 -void +static void make_ea_ix() { // Brief format @@ -292,7 +293,7 @@ make_ea_ix() // 符号拡張のテスト。 // 符号拡張が起きるのは xn.W, bd.W, od.W の3か所。 -void +static void test_ea_ix2() { struct {