--- nono/doc/index.php 2026/04/29 17:05:22 1.1.1.16 +++ nono/doc/index.php 2026/04/29 17:05:30 1.1.1.18 @@ -3,32 +3,15 @@ Copyright (C) 2020 nono project Licensed under nono-license.txt --> - + + + +nono document (<?php print $nono_ver; ?>) + nono () nono は NetBSD とかで動作する OMRON LUNA-I/LUNA-88K のエミュレータです。 -何故か SHARP X68030 と virt68k も動いたりするかも知れません。 +何故か SHARP X68030 と virt-m68k も動いたりするかも知れません。 nono is OMRON LUNA-I/LUNA-88K emulator runs on NetBSD and etc. -It can also emulate SHARP X68030 and virt68k. - +It can also emulate SHARP X68030 and virt-m68k.
@@ -104,32 +86,42 @@ It can also emulate SHARP X68030 and vir
  • make (BSD make, not GNU make)
  • C/C++ compiler which supports -std=c++14.
    -(For gcc, 7.4 or newer works at least. -For clang, 7.0 - 15.0 works at least.) -
  • wxWidgets 3.2.x "stable" branch or 3.0.x "old stable" branch +(For gcc, at least 7.4 or later. +For clang, at least 7.0 or later.) +
  • wxWidgets 3.2.x "stable" branch. + (3.0.x "old stable" branch would also work but is not confirmed.)
  • gettext

    wxWidgets は NetBSD(pkgsrc) なら -pkgsrc/x11/wxGTK32 (OPTIONS:gtk3 で動作確認) です。 +pkgsrc/x11/wxGTK32 です (wxGTK30 でも動くはずです)。 If you use NetBSD(pkgsrc), -wxWidgets is pkgsrc/x11/wxGTK32 (OPTIONS:gtk3 is tested). +wxWidgets is pkgsrc/x11/wxGTK32 +(or wxGTK30).

    (NetBSD 以外でのビルドはサポートしていませんが) -Ubuntu 22.04 ではたぶん以下のパッケージが必要です。 -You may need the following packages on Ubuntu 22.04 +Ubuntu ではたぶん以下のパッケージが必要です。 +You may need the following packages on Ubuntu (though we won't support non-NetBSD platform).

    @@ -159,13 +151,20 @@ Also, you can specify the following opti

    make install により2つの実行ファイルがインストールされます。 @@ -262,19 +261,16 @@ This option is equivalent to monitor _EOM_ ); -option_item("--initrd file", <<<_EOM_ - -(virt68k only) +option_item("--initrd file", <<<_EOM_ +(virt-m68k only) カーネルに渡す初期 RAM ディスクのパスを指定します。 file が相対パスの場合カレントディレクトリからのパスになります。 設定の exec-initrd とは相対パスの起点の違いを除いて同一です。 - -Specifies the initial ramdisk image passed to the kernel. +Specifies the initial ramdisk image passed to the kernel. If file is relative path, it is path from the current directory. This option is equivalent to exec-initrd in configuration except for base directory of the relative path. - _EOM_ ); @@ -317,7 +313,7 @@ _EOM_ option_item("-X file", <<<_EOM_ ホストの file をロードして実行します。 file が相対パスの場合カレントディレクトリからのパスになります。 -設定の exec-file とは相対パスの起点の違いを除いて同一です。 +設定の exec-file とは相対パスの起点の違いを除いて同一です。 ファイルが gzip 圧縮されていれば自動的に展開します。 (展開後の) ファイル形式は以下の通りですが、 実際にはブートローダとカーネル程度しか想定していません。 @@ -325,8 +321,8 @@ option_item("-X file", <<<_EOM_ Loads and executes host's file. If file is relative path, it is path from the current directory. -This option is equivalent to exec-file in configuration -except for base directory of the relative path. +This option is equivalent to exec-file in configuration +except for base directory of the relative path. If the file is gzip'd, it is automatically extracted. The supported file format (after extracting) is the following. Actually, it only assumes bootloaders or kernels. @@ -344,7 +340,6 @@ NetBSD の実行ファイルのようで If the file is assumed to be NetBSD executable, it will also load symbol tables as the bootloader does to the kernel.)

  • ELF object (Experimental) -
  • Human68k .x executable (Experimental) LUNA では設定の prom-image (後述) によらず内蔵の互換 ROM で起動します。 luna-dipsw1 の DIPSW 設定が @@ -354,10 +349,9 @@ LUNA では設定の prom-image ロードはここで指定したホストファイルをロードします。 X68030 では、IPLROM 起動の後の起動デバイスに細工がしてあり、 そこからホストファイルを実行します。 -virt68k (と NEWS) はこの方法でしか起動できませんので、 -実行ファイルの指定は必須になります。 - -On LUNA, +virt-m68k (と NEWS) はこの方法でしか起動できませんので、 +実行ファイルの指定は必須になります。 +On LUNA, regardless of prom-image configuration (see below), it boots the internal emulated PROM. If luna-dipsw1 configuration meets dipsw-autoboot=yes, @@ -368,7 +362,7 @@ will load the host file that is specifie On X68030, nono hacks the boot device after normal boot from IPLROM, and loads and executes the host file. -On virt68k (and NEWS), this is the only way to boot. +On virt-m68k (and NEWS), this is the only way to boot. _EOM_ ); ?> @@ -407,6 +401,9 @@ option_dev("-D", <<<_EOM_ _EOM_ ); +$hlink = linkto_str("human", "human.html"); +option_dev("-H", "Human68k モードです。→ {$hlink}"); + option_dev("-L name1=level1[,name2=level2,...]", <<<_EOM_ ログレベルを指定します。 @@ -469,7 +466,7 @@ do in the same manner. vmtype を除くすべての設定項目はそれぞれデフォルト値を持っています。 つまり少なくとも vmtype だけは設定ファイルかコマンドラインオプションで指定する必要があります。 All configuration items except vmtype have default value. -It means, you must specify at least only vmtype +It means, you need to specify at least only vmtype by configuration file or commandline option.

    設定項目は次の通りです。 @@ -487,11 +484,11 @@ VM 種別を以下のいずれかから Specifies the VM type from the following. This field is mandatory. -
     luna … LUNA-I -
    luna88k … LUNA-88K -
    x68030 … X68030 -
    news … NWS-1750 (Just a joke) -
    virt68k … virt68k +
     luna  … LUNA-I +
    luna88k  … LUNA-88K +
    x68030  … X68030 +
    news  … NWS-1750 (Just a joke) +
    virt-m68k (or virt68k)  … virt-m68k
    _EOM_ ); @@ -615,26 +612,37 @@ config_item( _EOM_ ); -config_item("exec-file = path", <<<_EOM_ - +config_item("exec-file = path", <<<_EOM_ 起動時にロードするホストの実行ファイルを指定します。 -X オプションとほぼ同等ですが、相対パスは VM ディレクトリを起点にします。 Specifiies the host file that will be loaded at startup. This is mostly the same as -X option. The only one difference is that relative path originates the VM directory. - _EOM_ ); -config_item("exec-initrd = path", <<<_EOM_ +config_item("exec-bootparam = string", <<<_EOM_ -(virt68k Only) +(virt-m68k Only) +カーネルに渡すブートパラメータを指定します。 +内容はたぶん OS ごとに異なりますが、 +NetBSD/virt68k では "root=ld0" (クォートを除く) +のようにしてカーネルにルートデバイスを指示します。 +Specifies the boot parameter that is passed to the kernel. +The syntax may differ depending on the OS, but in NetBSD/virt68k, +you can specify the root device to the kernel, like as +"root=ld0" (excluding quotes). + +_EOM_ +); + +config_item("exec-initrd = path", <<<_EOM_ +(virt-m68k Only) カーネルに渡す初期 RAM ディスクイメージのパスを指定します。 --initrd オプションとほぼ同等ですが、相対パスは VM ディレクトリを起点にします。 Specifies the initial ramdisk image passed to the kernel. This is mostly the same as --initrd option. The only one difference is that relative path originates the VM directory. - _EOM_ ); @@ -688,61 +696,86 @@ _EOM_ ); config_item("fpu-type = value", <<<_EOM_ -(X68030 Only) -FPU を装着するかどうか指定しています。 -none なら FPU を装着しません。 -68881 なら FPU として 68881 を装着します。 +(X68030 and virt-m68k Only) +68030 に FPU コプロセッサを装着するかどうか指定しています。 +この設定は mpu-type68030 の時のみ有効です。 +none なら FPU コプロセッサを装着しません。 +68881 なら FPU コプロセッサとして 68881 を装着します。 現状 68882 はサポートしていません。 また none の代わりに 068881 の代わりに 1 と書くこともできます。 デフォルトは 68881 です。 -LUNA-I はたぶん 68881 搭載モデルのみのため設定できません。 -virt68k も現状 68881 固定としています。 -Specifies whether to install FPU or not. -If none, FPU is not installed. -If 68881, 68881 FPU is installed. +LUNA-I はたぶん 68881 搭載モデルのみのため変更できません。 +Specifies whether to install FPU co-processor or not. +This item is meaningful only if mpu-type is 68030. +If none, FPU co-processor is not installed. +If 68881, 68881 FPU co-processor is installed. 68882 is not supported yet. And, none can also be written as 0, 68881 can also be written as 1. The default is 68881. This item cannot be specified on LUNA-I -because (probably) all LUNA-I has 68881. -This item also cannot be specified on virt68k for now. +because (probably) all LUNA-I has 68881. _EOM_ ); -config_item("host-avx2 = string", <<<_EOM_ - -ホストが amd64(x86_64) の場合に AVX2 アクセラレーションを使うかどうかを -指定します。 +config_item("host-avx2 = string", <<<_EOM_ +ホストが amd64(x86_64) の場合にレンダリングに AVX2 +アクセラレーションを使うかどうかを指定します。 auto なら起動時にホスト CPU が AVX2 をサポートしているか確認し、 サポートしていれば使用します。 no なら AVX2 コードを実行しません。 デフォルトは auto です。 amd64(x86_64) 以外のホストではこの設定は無視されます。 -Specifies whether to use AVX2 acceleration on amd64(x86_64) hosts. +Specifies whether to use AVX2 acceleration for rendering +on amd64(x86_64) host. If auto, nono checks whether the host CPU supports AVX2 on startup and use it if it does. If no, nono will not execute AVX2 instructions. The default is auto. Note that this item is ignored if the host is not amd64(x86_64). - +_EOM_ +); + +config_item("host-neon = string", <<<_EOM_ +ホストが aarch64 の場合にレンダリングに NEON +アクセラレーションを使うかどうかを指定します。 +auto なら使用し、 +no なら使用しません。 +デフォルトは auto です。 +aarch64 以外のホストではこの設定は無視されます。 +Specifies whether to use NEON acceleration for rendering +on aarch64 host. +If auto, nono uses NEON code. +If no, nono don't use NEON code. +The default is auto. +Note that this item is ignored if the host is not aarch64. _EOM_ ); config_item("hostcom-driver = string", <<<_EOM_ シリアルポートのホスト側ドライバを指定します。 -stdiotcpnone が選択可能です。 -stdio は標準入出力を使用します。 -tcp は TCP ポートで TELNET プロトコルで待ち受けます。 +stdio なら標準入出力を使用します。 +tcp なら TCP ポートで TELNET プロトコルで待ち受けます。 +cons ならメイン画面で端末エミュレーションを行います。 none ならホスト側とは一切通信を行いません。 -デフォルトは none です。 + +ゲスト機種によって対応しているホスト側ドライバの種類とデフォルト値が変わります。 +LUNA-I、LUNA-88K、X68030 では stdiotcpnone +が選択可能でデフォルトは none です。 +virt-m68k、NEWS では stdiotcpconsnone +すべてが選択可能でデフォルトは cons です。 Specifies the host driver of serial port. -stdio, tcp, and none can be specified. stdio uses the standard input/output. tcp listens on TCP port using TELNET protocol. +cons does a terminal emulation in main panel. none doesn't make any communication with the host. -The default is none. + +The choices and default value vary depending on the guest type. +On LUNA-I, LUNA-88K and X68030, you can choose stdio, tcp +or none, and the default is none. +On virt-m68k and NEWS, you can choose all of stdio, tcp, +cons or none, and the default is cons. _EOM_ ); @@ -1050,6 +1083,22 @@ The default value is 4. _EOM_ ); +config_item( + "m88100-version = integer
    " . + "m88200-version = integer", <<<_EOM_ +(LUNA-88K Only) +MPU と CMMU のマスクバージョンを設定します。 +今の所これによるエミュレータの動作の違いはありません。 +どちらかというとこれを参照しているゲスト OS の動作確認用です。 +デフォルトは m88100-version が 11、m88200-version が 9 です。 +Specifies MPU and CMMU mask version. +This item doesn't affect any MPU/CMMU emulations for now. +But it may be useful for verifying the guest OS behaviors. +The default value is 11 for m88100-version, +9 for m88200-version. +_EOM_ +); + config_item("mainview-scale = double", <<<_EOM_ メインウィンドウの起動時のスケールを実数で指定します。 コマンドラインオプション -s で上書き可能です。 @@ -1084,10 +1133,23 @@ _EOM_ config_item("mpu-clock = value", <<<_EOM_ MPU のクロック数を MHz 単位で指定します。 デフォルトは LUNA-I なら 20MHz、LUNA-88K と X68030 なら 25MHz です。 -virt68k ではあまり意味はありませんが 25MHz です。 +virt-m68k ではあまり意味はありませんが 25MHz です。 Specifies the MPU clock in MHz. The default value is 20MHz on LUNA-I, or 25MHz on LUNA-88K and X68030. -On virt68k, it's less meaningful but 25MHz. +On virt-m68k, it's less meaningful but 25MHz. +_EOM_ +); + +config_item("mpu-type = value", <<<_EOM_ + +(X68030, virt-m68k Only) +MPU 種別を指定します。 +MPU を変更出来るのは X68030 と virt-m68k のみで、 +6803068040 かを指定します。 +デフォルトはいずれも 68030 です。 +Specifies the MPU type, 68030 or 68040. +The default is 68030. + _EOM_ ); @@ -1270,13 +1332,13 @@ You can specify it in 1MB unit from 4MB See extram-size for extended memory.

  • NWS-1750 では現状 16MB で変更できません。 On NWS-1750, This is 16MB fixed for now. -
  • virt68k のデフォルトは 128MB です。 +
  • virt-m68k のデフォルトは 128MB です。 16MB から 4080MB まで(アプリケーションとしては)指定可能です。 指定された値が 16MB で割り切れない場合は 16MB 単位に切り上げになります。 -On virt68k, the default is 128MB and +On virt-m68k, the default is 128MB and the range is 16MB to 4080MB. If the specified size is not divisible by 16MB, -it will be rounded up to 16MB. +it will be rounded up to 16MB. _EOM_ ); @@ -1435,22 +1497,19 @@ The default is 1. _EOM_ ); -config_item("virtio-blockN-image = path", <<<_EOM_ - -(virt68k only) +config_item("virtio-blockN-image = path", <<<_EOM_ +(virt-m68k only) virtio のブロックデバイスのイメージを指定します。 キーの N は現状 0 から 7 です。 イメージパスが相対パスなら VM ディレクトリからの相対パスになります。 Specifies virtio block device's image. N in the key is 0 to 7 for now. If the path is relative path, it is from the VM directory. - _EOM_ ); -config_item("virtio-blockN-writeignore = integer", <<<_EOM_ - -(virt68k only) +config_item("virtio-blockN-writeignore = integer", <<<_EOM_ +(virt-m68k only) 指定の virtio ブロックデバイスへの書き込みをイメージに書き戻すかどうか指定します。 0 なら通常動作(書き込みを行う)です。 1 ならディスクイメージに一切書き戻しません。 @@ -1472,15 +1531,12 @@ This is useful for kernel debugging beca after the kernel hangs or reboots. Don't use this flag if you don't understand this paragraph. The default value is 0. -

    - ちなみに、メディアを書き込み禁止にしたい場合はこれではなく、 イメージファイルの書き込み権を落としてください。 By the way, if you want to make the media write-protected, clear the write permission from the image file (instead of this setting). - _EOM_ ); @@ -1508,6 +1564,15 @@ Only if you run the X server on NetBSD/x _EOM_ ); +config_item("xp-clock = value", <<<_EOM_ + +(LUNA Only) +XP プロセッサのクロック数を MHz 単位で指定します。 +デフォルトは 6.144 [MHz] です。 + +_EOM_ +); + ?> @@ -1550,7 +1615,7 @@ _EOM_ Data cache not implemented +MPU (68030) ◎ FPU (68881) ◎ BT454 ◎ CRTC2 ○ 標準で使用する値のみサポート @@ -1576,9 +1641,9 @@ MPU (88110) — 実装予定なし N FUSEROM ○ X68030 -MPU (68030) ○ データキャッシュ未実装 Data cache not implemented -MPU (68EC030) — 実装予定なし Not planned +MPU (68030) ◎ 68EC030 は実装予定なし 68EC030 is not planned FPU (68881) ◎ 68882 は未実装 68882 not implemented +MPU (68040) キャッシュ未実装、実行サイクル未考察 DMAC △ CRTC/VC △ 768x512 のテキスト画面のみサポート Only 768x512 text screen supported FDC/FDD ○ @@ -1606,7 +1671,7 @@ Nereid USB — 実装予定なし N Windrv △ NWS-1750 -MPU (68030) ○ データキャッシュ未実装 Data cache not implemented +MPU (68030) ◎ FPU (68881) ◎ 68882 は未実装 68882 not implemented PROM × SCC (Z8530) ◎ チャンネル A のみホストに接続 Only channel A is connected to the host @@ -1619,16 +1684,18 @@ IDROM, DIP-SW, 100Hz Timer, 診断用LED AST, Lv2Intr × 電源 Power Circuit × -virt68k -MPU (68030) ○ データキャッシュ未実装 Data cache not implemented +virt-m68k +MPU (68030) ◎ FPU (68881) ◎ 68882 は未実装 68882 not implemented -Goldfish PIC -Goldfish RTC -Goldfish Timer -Goldfish TTY -virtio v1.0 block -virtio v1.0 net -Power Control +MPU (68040) キャッシュ未実装、実行サイクル未考察 +Goldfish PIC ◎ +Goldfish RTC ◎ +Goldfish Timer ◎ +Goldfish TTY ○ +virtio v1.0 block ○ +virtio v1.0 net ○ +virtio v1.0 entropy ◎ +Power Control ○ __EOM__; $table_lines = preg_split("/\n/", $table); @@ -1655,13 +1722,35 @@ __EOM__;

    -68030 は命令キャッシュのみ実装し、データキャッシュは未実装です。 -また ATC (アドレス変換キャッシュ) は実際の仕様とは異なり高速化してあります。 -68030 instruction cache is implemented but data cache is not. -ATC (Address Translation Cache) is differ from and faster than the real 68030. +68030 ATC (アドレス変換キャッシュ) は実際の仕様とは異なり高速化してあります。 +68030 ATC (Address Translation Cache) is differ from and faster than the real 68030.
    +MPU (68040)"); ?> +
    +いくつか未実装の命令があります。 +キャッシュは未実装で、 +それに伴いキャッシュ制御を行う新設命令 CINV*, CPUSH* も未実装です。 +MMU、ATC はおそらく実装完了です。 +FPU はある程度動作すると思いますが +例外を起こす細かい条件は未検証のため、 +本来は例外が起きてソフトウェア (FPSP) で処理するはずのものが +68881 相当のハードウェアエミュレーションで実行出来てしまうという +通常あまり困らないタイプの問題は存分にあります。 +
    +命令の実行サイクルについては未考察です。 +そもそも 68040 はパイプライン方式なので 68000 時代のようにサイクル数を +正確にエミュレーションすることはおそらく不可能ですが、 +それにしても似せるところまでも行っていないという意味です。 +
    +68040 は X68030 と virt-m68k でのみ選択可能で、 +LUNA-I と NEWS では選択できません。 +NEWS に 68040 搭載モデルはなさそうなのと、 +LUNA では 68040 搭載モデルは LUNA-I ではなく LUNA-II になるからです。 +
    + +
    LUNA-I、LUNA-88K で PROM の外部イメージを指定しない場合 @@ -1697,25 +1786,37 @@ PROM も NetBSD/news68k
    -virt68k エミュレーション"); ?> +
    - QEMU の "virt" (架空ハードウェア仕様)の互換機wをサポートしています。 NetBSD/virt68k が動作します。 -X オプション (または設定の exec-file) -でカーネルを指定してください。 +でカーネルを、 +設定の exec-bootparam でルートデバイスを +それぞれ +指定してください。 インストール時には --initrd (または設定の exec-initrd) で RAM ディスクイメージも指定します。 -また、設定の hostcom-driver でシリアルコンソールを -どこかに出力するのもほぼ必須だと思います。 Supports QEMU "virt" virtual hardware's compatible machine and it can run NetBSD/virt68k. You need to specify the kernel by -X option (or exec-file in configuration). If you want to install, you also need to specify the ramdisk image by ---initrd option (or exec-initrd in configuration). -And also, you may need to configure serial console -by hostcom-driver in configuration. +--initrd option (or exec-initrd in configuration). +
    + + +シリアルコンソールの端末エミュレーション"); ?> +
    + +virt-m68k (や NEWS) のようにシリアルコンソールしか持たない機種のために、 +メイン画面でシリアルコンソールの端末エミュレーションを実装してあります。 +hostcom-driver = cons とすることで nono のメイン画面に +シリアルコンソールの内容が表示されます。 +カラーは現状サポートしていませんが、 +ボールド、イタリック、下線などはある程度サポートしています。 +バックログはありませんので、バックログが必要なら +stdio 等を使ってください。
    @@ -1784,9 +1885,10 @@ Also, SW8 specifies enable/disable of th
    -Windrv を一応サポートしてみました。 +X68030 で Windrv を一応サポートしています。 Human68k からホストのファイルシステムをアクセスする機構です。 -既存の Windrv とは、ホスト OS の前提が異なるため既存実装からの移植ではありませんし、 +従来の Windrv とはホスト OS の前提が異なるため、 +既存実装からの移植ではありませんし、 そもそも Human68k とホスト(UNIX)ファイルシステムの差異による制約も多くあります。 これらを把握してから使用してください。
    @@ -2764,10 +2885,19 @@ the mouse pointer will not move as expec (2021/12/30)
  • Wayland の場合にウィンドウサイズが正しく設定されない場合があります。 -wxWidgets (3.0.5) のバグと思われます。 +wxWidgets (3.0/3.2) のバグと思われます。 On Wayland, window size may be incorrect. -This may be due to wxWidgets (3.0.5) bug. -(2021/12/30) +This may be due to wxWidgets (3.0/3.2) bug. +(2021/12/30, Updated 2024/07/03) + +
  • nono ではありませんが、wxWidgets 3.2 (with GTK3) は +NetBSD/sparc (などマイナーアーキテクチャ?) +でウィンドウ内がほぼ描画されないようです。 +wxWidgets 3.0 (with GTK2) であれば動作します。 +On wxWidgets 3.2 (with GTK3), it seems that the inside of the window +is hardly drawn at NetBSD/sparc (and such minor architectures?). +wxWidgets 3.0 (with GTK2) can. +(2024/07/03) @@ -2790,15 +2920,18 @@ In such case, you may need to upgrade it +Included Software"); ?> +
    +
      +
    • +
    +
    + + + Changes"); ?>
    -See changes.html. -changes.php)\n"; - } -?> +See .