68030 ATC (Address Translation Cache) is differ from and faster than the real 68030.+MMU、キャッシュあたりはほぼ実装していると思います。 +命令の実行サイクルについてはある程度似せているつもりですが、 +68000 のようにサイクル数を正確に数えるのは困難です。
--- nono/doc/index.php 2026/04/29 17:05:39 1.1.1.20 +++ nono/doc/index.php 2026/04/29 17:05:56 1.1.1.24 @@ -91,7 +91,7 @@ For clang, at least 7.0 or later.)
@@ -113,6 +113,7 @@ Ubuntu 24.04 ではたぶん以下のパ bmake, build-essential, gettext, +libasound2-dev, libbsd-dev, libkqueue-dev, libslirp-dev, @@ -122,7 +123,9 @@ zlib1g-dev
nono のソースアーカイブを展開したら以下のようにビルドします。
-Extract the nono's source archive and build as following.
+-DRELEASE がないとハードモードになるので必ず指定してください。
+Extract the nono's source archive and build as following.
+If you don't specify -DRELEASE, it will be hard mode.
@@ -224,15 +227,6 @@ If -c option is omitted, _EOM_ ); -option_item("--create-sram", <<<_EOM_ -(X68030 Only) -VM ディレクトリに X68030 用の SRAM.DAT がなければ初期状態で作成して終了します。 --nono will create the initial SRAM.DAT for X68030 and exit, -if there is no SRAM.DAT in the VM directory.-_EOM_ -); - option_item("-f", <<<_EOM_ 高速モードで起動します。 GUI なら起動後にもメニューから変更できますが、その初期値を変えるだけです。 @@ -244,8 +238,7 @@ This option is equivalent to fast-mo _EOM_ ); -option_item("--fd0 file
--fd1 file", <<<_EOM_ - +option_item("--fd0 file
--fd1 file", <<<_EOM_ (X68030 Only) フロッピーイメージを指定します。 file が相対パスの場合カレントディレクトリからのパスになります。 設定の fd0-image、fd1-image @@ -255,7 +248,6 @@ If file is relative path it is path from the current directory. This option is equivalent to fd0-image, fd1-image in configuration except for base directory of the relative path. - _EOM_ ); @@ -388,11 +380,22 @@ function option_dev($name, $desc) print "{$desc} \n"; } -option_dev("-b hexaddr[,skipcount]", <<<_EOM_ +option_dev("-b,--b hexaddr[,skipcount]", <<<_EOM_ デバッガのブレークポイントを 16進数で指定します。 _EOM_ ); +option_dev("--bi inst[:mask][,skipcount]", +<<<_EOM_ +デバッガの命令ブレークポイントを指定します。 +_EOM_ +); + +option_dev("--bv vector[,skipcount]", <<<_EOM_ +デバッガの例外ブレークポイントを指定します。 +_EOM_ +); + option_dev("-C", <<<_EOM_ ログをコンソールにも出力します。 通常はログウィンドウにだけ出力されます。 @@ -526,8 +529,8 @@ config_item("clock-sync = value", 仮想マシン内の時刻の同期方法を指定します。 real なら実時間に同期、virtual なら仮想時間に同期します。Specifies how to synchronize the time in the virtual machine. -If real, synchronize with the real time; -if virtual, synchronize with the virtual time.+real means synchronizing with the real time. +virtual means synchronizing with the virtual time._EOM_ ); @@ -716,7 +718,8 @@ _EOM_ config_item("fdN-image = path", <<<_EOM_ (X68030 Only) -フロッピードライブ N に起動時に挿入するディスクイメージを指定します。 +フロッピードライブ N に起動時に挿入する +ディスクイメージを指定します。 イメージパスが相対パスなら VM ディレクトリからの相対パスになります。 起動後はメニューから操作できます。 デフォルトは空です。 @@ -740,8 +743,8 @@ config_item("fpu-type = value", < LUNA-I はたぶん 68881 搭載モデルのみのため変更できません。
- LUNA-I では 60Hz のシステムクロック割り込みと RTC(MK48T02) が対象で、 デフォルトは real です。 @@ -545,7 +548,7 @@ The default is real. デフォルトは real です。
On virt-m68k, Goldfish Timer interrupt and Goldfish RTC are the target. The default is real.-- X68030 では MFP のタイマー割り込みと RTC(RP5C15) が対象で、 +
- X68030 では MFP のタイマー割り込みと RTC(RP5C15) が対象で、 デフォルトは virtual です。 MFP の TxDR レジスタの読み出しは、 この指定に関わらず常に virtual 相当の動作しか出来ません。 @@ -555,7 +558,6 @@ The default is virtual. Note that reading from MFP TxDR register only works as virtual, regardless of this setting. See also Time Synchronization on NetBSD/x68k. -
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. +If set to none, FPU co-processor is not installed. +If set to 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. @@ -751,7 +754,94 @@ because (probably) all LUNA-I has 68881. _EOM_ ); -config_item("host-avx2 = string", <<<_EOM_ +config_item( + "hostcom-driver = string_EOM_ ); @@ -1294,7 +1434,7 @@ Nereid ボードのバンクメモリの (ボードを装着しない) の場合は意味を持ちません。
" . + "hostcom-tcp-port = integer
" . + "hostcom-fallback = integer", <<<_EOM_ +それぞれ hostcom0-* の別名です。 +These are aliases for hostcom0-* respectively.+_EOM_ +); + +config_item("hostcomN-driver = string", <<<_EOM_ +起動時のシリアルポート N のホスト側ドライバを指定します。 +stdio なら標準入出力を使用します。 +tcp なら TCP ポートで TELNET プロトコルで待ち受けます。 +console (または cons) +ならメイン画面で端末エミュレーションを行います。 +none ならホスト側とは一切通信を行いません。 +Specifies the host driver of serial port N on startup. +stdio uses the standard input/output. +tcp listens on TCP port using TELNET protocol. +console (or cons) does a terminal emulation in main panel. +none doesn't make any communication with the host.++hostcomN と +VM 内のデバイス(ポート)との対応は下表の通り VM 種別ごとに固定です。 +
The correspondence between hostcomN and +device (port) in the VM is fixed depending on the VM type +as the following table.++ ++
+hostcom\VM LUNA-I/LUNA-88K X68030 NWS-1750 virt-m68k + hostcom0 + SIO(uPD7201) Ch.A + SCC(Z8530) Ch.A + SCC(Z8530) Ch.A + Goldfish TTY + hostcom1 + HD647180 ASCI Ch.0 + N/A + N/A + N/A + hostcom2 + HD647180 ASCI Ch.1 + N/A + N/A + N/A + +また、VM 種別によって有効なホスト側ドライバの種類とデフォルト値も異なります。 +
The choices and default value vary depending on the VM type.++ ++
+VM LUNA-I/LUNA-88K X68030 NWS-1750 virt-m68k + 有効なドライバ Available drivers+stdio
tcp
none
+stdio
tcp
none
+stdio
tcp
console
none +stdio
tcp
console
none +hostcom0-driver のデフォルト値 Default value+none + none + console + console + hostcom[12]-driver のデフォルト値 Default value+none + N/A + N/A + N/A + +指定したドライバが使用出来なかった場合エラー終了します。 +起動後はメニューからドライバを変更できますが、パラメータは(まだ?)変更できません。 +実行中に変更に失敗した場合は none にフォールバックします。 +
Terminate if the specified driver could not be used. +You can change the driver by menu at runtime, +but its parameters cannot be changed (yet?). +If changing at runtime fails, it will fallback to none.+_EOM_ +); + +config_item("hostcomN-tcp-port = integer", <<<_EOM_ +ホストドライバが tcp の時の TCP 待ち受けポート番号を指定します。 +Specifies the TCP port number that host driver listens.+_EOM_ +); + +config_item("hostcpu-avx2 = string", <<<_EOM_ ホストが amd64(x86_64) の場合にレンダリングに AVX2 アクセラレーションを使うかどうかを指定します。 auto なら起動時にホスト CPU が AVX2 をサポートしているか確認し、 @@ -761,15 +851,15 @@ config_item("host-avx2 = string", amd64(x86_64) 以外のホストではこの設定は無視されます。Specifies whether to use AVX2 acceleration for rendering on amd64(x86_64) host. -If auto, nono checks whether the host CPU supports AVX2 +If set to 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. +If set to 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).+Note that this item is ignored if the host is not amd64(x86_64). _EOM_ ); -config_item("host-neon = string", <<<_EOM_ +config_item("hostcpu-neon = string", <<<_EOM_ ホストが aarch64 の場合にレンダリングに NEON アクセラレーションを使うかどうかを指定します。 auto なら使用し、 @@ -778,52 +868,24 @@ config_item("host-neon = string", 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. +If set to auto, nono uses NEON code. +If set to 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_ -シリアルポートのホスト側ドライバを指定します。 -stdio なら標準入出力を使用します。 -tcp なら TCP ポートで TELNET プロトコルで待ち受けます。 -cons ならメイン画面で端末エミュレーションを行います。 -none ならホスト側とは一切通信を行いません。 -ゲスト機種によって対応しているホスト側ドライバの種類とデフォルト値が変わります。 -LUNA-I、LUNA-88K、X68030 では stdio、tcp、none -が選択可能でデフォルトは none です。 -virt-m68k、NEWS では stdio、tcp、cons、none -すべてが選択可能でデフォルトは cons です。 -Specifies the host driver of serial port. -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 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.+Note that this item is ignored if the host is not aarch64. _EOM_ ); -config_item("hostcom-tcp-port = integer", <<<_EOM_ -ホストドライバが tcp の時の TCP 待ち受けポート番号を指定します。 -Specifies the TCP port number that host driver listens.-_EOM_ -); - -config_item("hostcom-fallback = integer", <<<_EOM_ -hostcom-driver で指定したドライバが使用可能でなかった時、 -0 ならプロセスを終了します。1 なら none を選択して実行を継続します。 -デフォルトは 0 です。 -Specifies the behavior when the driver which is selected by -hostcom-driver is unusable; -terminate the process if 0, -or continue to run using the none driver if 1. -The default is 0.+config_item("hostcpu-fastcore = string", <<<_EOM_ +ホストの CPU がヘテロジニアス構成の場合の高性能コアを列挙します。 +コアの番号は 0,1,2 のようにカンマ区切りで指定します。 +ハイフンで範囲指定も出来ます。 +-2,3,4-7 は 0-7 と等価です。 +どのコアが高性能コアかは dmesg 等で調べてください。 +どのスレッドを割り当てるかはユーザは指定できません。 +コアが一つも指定されないかすべてのコアが指定された場合はホモジニアス構成とみなします。 +auto と書くと自動判別ですが現状 Intel CPU のみ対応しています。 +対称構成の CPU なら指定不要です。 +デフォルトは auto です。 _EOM_ ); @@ -852,16 +914,16 @@ config_item( "hostnet-usermode-net6 = string
" . "hostnet-fallback = integer
", <<<_EOM_ それぞれ hostnet0-* の別名です。 +These are aliases for hostnet0-* respectively._EOM_ ); config_item("hostnetN-driver = string", <<<_EOM_ -N +起動時の N 番目のイーサネットデバイスのホスト側ドライバを指定します。 afpacket、bpf、tap、usermode のうち configure で検出したものと auto、none が選択可能です。 -Specifies the host driver of N-th -ethernet device. ++Specifies the host driver of N-th ethernet device on startup. afpacket, bpf, tap and usermode can be specified only if the configure detects them. auto and none can always be specified.@@ -891,6 +953,34 @@ configure で libslirp が無効にな when libslirp is disabled on configure, it is a synonym for none. The default of hostnet0-driver is auto, the default of hostnet1-driver is none.+hostnetN と +VM 内のデバイスとの対応は下表の通り VM 種別ごとに固定です。 +
The correspondence between hostnetN and +device in the VM is fixed depending on the VM type as the following table.++ ++
+hostnet\VM LUNA-I/LUNA-88K X68030 NWS-1750 virt-m68k + hostnet0 + Lance(AM7990) + Nereid#0 (RTL8019AS) + Lance(AM7990) + VirtIO Network + hostnet1 + N/A + Nereid#1 (RTL8019AS) + N/A + N/A + +指定したドライバが使用出来なかった場合エラー終了します。 +起動後はメニューからドライバを変更できますが、パラメータは(まだ?)変更できません。 +実行中に変更に失敗した場合は none にフォールバックします。 +
Terminate if the specified driver could not be used. +You can change the driver by menu at runtime, +but its parameters cannot be changed (yet?). +If changing at runtime fails, it will fallback to none._EOM_ ); @@ -991,16 +1081,46 @@ IPv6 には対応していません。 _EOM_ ); -config_item("hostnetN-fallback = integer", <<<_EOM_ -hostnetN-driver で指定したドライバが使用可能でなかった時、 -0 ならプロセスを終了します。 -1 なら none を選択して実行を継続します。 -デフォルトは 0 です。 -Specifies the behavior when the driver which is selected by -hostnetN-driver is unusable; -terminate the process if 0, -or continue to run using the none driver if 1. -The default is 0.+config_item("hostsound-driver = string", <<<_EOM_ +サウンドデバイスのホスト側ドライバを指定します。 +alsa、netbsd、sndio のうち configure で検出したものと +wav、none、auto が選択可能です。 +Specifies the host sound driver. +alsa, netbsd, and sndio are +available only if detected by configure. +wav, none, and auto are always selectable.++
+デフォルトは auto です。 +- alsa は Linux の ALSA ライブラリを使用します。 +
alsa uses Linux's ALSA library.+- netbsd は NetBSD の audio(4) デバイスを使用します。 +
netbsd uses NetBSD's audio(4) device.+- sndio は OpenBSD の sndio ライブラリを使用します。 +
sndio uses OpenBSD's sndio library.+- wav は VM ディレクトリに WAV ファイルを出力します。 +この WAV ファイルには無音のブロックは出力されません。 +
wav outputs WAV file in the VM directory. + This WAV file doesn't contains any silent blocks.+- none はホスト側には一切出力しません。 +
none doesn't output anything.+- auto なら、configure で検出された一つが選択されます。 +検出されなければ none です。 +
auto selects the one detected by configure. + Or act as none if no drivers are detected.+The default is auto.+_EOM_ +); + +config_item("hostsound-alsa-device = string", <<<_EOM_ +ホストドライバが alsa の時のデバイス名を指定します。 +デフォルトは default です。 +_EOM_ +); + +config_item("hostsound-netbsd-device = string", <<<_EOM_ +ホストドライバが netbsd の時のデバイスパスを指定します。 +デフォルトは /dev/sound です。 _EOM_ ); @@ -1220,6 +1340,26 @@ On virt-m68k, it's less meaningful but 2 _EOM_ ); +config_item("mpu-force-disable-dcahce = integer
" . + "mpu-force-disable-icache = integer", <<<_EOM_ + +MPU のデータキャッシュ(dcache)/命令キャッシュ(icache) +を強制的に無効にすることが出来ます。 +0 ならキャッシュを常に無効にします。1 なら通常動作です。 +デフォルトは 1 です。 +MPU が 68030 の場合 CACR の EI, ED に 1 を書き込んでも 0 のままになるという意味です。 +m88k は未対応です。 +You can forcibly disable MPU data cache (dcache)/instruction cache (icache). +0 means forcibly disable the cache. +1 means normal operation. +The default is 1. +On 68030, forcibly disable means that even if +you write 1 to EI, ED on CACR, it will remain 0. +Not supported for m88k.+ +_EOM_ +); + config_item("mpu-type = value", <<<_EOM_ (X68030, virt-m68k Only) MPU 種別を 68030 か 68040 で指定します。 @@ -1253,13 +1393,13 @@ Nereid 拡張ボードを装着するか Nereid は同時に2枚まで使用することができます。 値は 0 なら装着せず、1 なら装着します。 デフォルトは 0 (装着しない) です。 -詳細は 4.6 Nereid の章を参照してください。 +詳細は Nereid エミュレーション の項を参照してください。Specifies whether install Nereid expansion board or not. Up to two board can be operated at the same time. -If 0, the board is not installed. -If 1, the board is installed. +If set to 0, the board is not installed. +If set to 1, the board is installed. The default value is 0. -See also Section 4.6 Nereid below for details.+See also Nereid emulation section below for details.Specifies bank memory size in MB of Nereid expansion board. The valid values are 0, 4 or 16. -If 0, disable the bank memory. +If set to 0, disable the bank memory. The default is 16. This item will be ignored if the corresponding nereidN-enable is 0.@@ -1450,7 +1590,8 @@ _EOM_ config_item("spc0-idN-image = devtype[,path]", <<<_EOM_ (LUNA and X68030 Only) -SCSI デバイスとイメージを指定します。キーの N には 0 から 7 が入ります。 +SCSI デバイス種別とディスクイメージを指定します。 +キーの N には 0 から 7 が入ります。 ただし ID 7 は本体が使用しますので指定しないでください。 値はデバイス種別 devtype とディスクイメージパス path を ","(カンマ) で区切って並べた形式です。 @@ -1475,19 +1616,19 @@ If devtype is cd or If the path is relative path, it is from the VM directory.-例えば、nono.cfg と同じディレクトリに置いた sd0.img を +例えば、nono.cfg と同じディレクトリに置いた sd0.qcow2 を 起動 HDD ディスクイメージとして使い (LUNA では通常 ID 6 をプライマリ HDD に割り当てます)、 ID 5 に同じディレクトリの install.iso をセットした CD ドライブを、 ID 4 に起動時メディアなしの MO ドライブを接続する場合は次のようになります。 -
For example, if you use a harddisk image sd0.img placed in the same +"); ?>For example, if you use a harddisk image sd0.qcow2 placed in the same directory as nono.cfg (LUNA usually assigns ID 6 to the primary HDD), ID 5 for CD-ROM drive that loads install.iso in the same directory, and ID 4 for MO drive without media on boot, write as following:@@ -1551,8 +1692,8 @@ SRAM の \$ed0008.L (RAM 容量) を ram デフォルトは 1 です。-spc0-id6-image = hd,sd0.img +spc0-id6-image = hd,sd0.qcow2 spc0-id5-image = cd,install.iso spc0-id4-image = moSpecifies whether to synchronize a RAM size field in SRAM with real RAM size or not. -If 0, the application will do nothing (as same as the real). -If 1, the application updates(synchronizes) +If set to 0, the application will do nothing (as same as the real). +If set to 1, the application updates(synchronizes) \$ed0008.L (RAM size) in SRAM with configuration value of ram-size. This update is performed once only if the SRAM magic string is correct at the application startup. @@ -1562,7 +1703,7 @@ _EOM_ config_item("virtio-blockN-image = path", <<<_EOM_ (virt-m68k Only) -VirtIO ブロックデバイスのイメージを指定します。 +VirtIO ブロックデバイスのディスクイメージを指定します。 キーの N は現状 0 から 7 が指定可能です。 イメージパスが相対パスなら VM ディレクトリからの相対パスになります。"); ?>Specifies VirtIO block device's image. @@ -1581,10 +1722,42 @@ See spc0-idN-writeignore _EOM_ ); -config_item("virtio-scsi-idN-image = devtype[,path]", <<<_EOM_ +config_item("virtio-entropy = integer", <<<_EOM_ + +VirtIO エントロピーデバイスを無効にすることが出来ます。 +0 なら無効、1 なら有効です。デフォルトは 1 です。 +- _EOM_ ); -config_item("virtio-scsi-idN-writeignore = integer", <<<_EOM_ - +config_item("virtio-scsi-idN-writeignore = integer", <<<_EOM_ (virt-m68k Only) 指定の VirtIO SCSI デバイスへの書き込みをイメージに書き戻すかどうか指定します。 詳細は spc0-idN-writeignore を参照してください。You can disable VirtIO entropy device. +0 means disabled, 1 means enabled. +The default is 1.+ +_EOM_ +); + +config_item("virtio-net = integer", <<<_EOM_ + +VirtIO ネットワークデバイスを無効にすることが出来ます。 +0 なら無効、1 なら有効です。デフォルトは 1 です。 +You can disable VirtIO network device. +0 means disabled, 1 means enabled. +The default is 1.+ +_EOM_ +); + +config_item("virtio-scsi = integer", <<<_EOM_ +VirtIO SCSI デバイスを無効にすることが出来ます。 +0 なら無効、1 なら有効です。デフォルトは 1 です。 +You can disable VirtIO SCSI device. +0 means disabled, 1 means enabled. +The default is 1.+ +_EOM_ +); + +config_item("virtio-scsi-idN-image = devtype[,path]", <<<_EOM_ (virt-m68k Only) -VirtIO SCSI デバイスとイメージを指定します。 +VirtIO SCSI デバイス種別とディスクイメージを指定します。 イニシエータ ID が不要なため、 キーの N には 0 から 7 が指定できます。 詳細は spc0-idN-image を参照してください。 @@ -1592,19 +1765,16 @@ VirtIO SCSI デバイスとイメージ You can specify all of 0 thorugh 7 for the key N, because there is no initiator. See spc0-idN-image for more details.Specifies whether nono writes a writing to VirtIO SCSI devices back to the diskimage. See spc0-idN-writeignore for details.- _EOM_ ); @@ -1625,8 +1795,9 @@ MPU (68030) の FC2 ピンを切断す デフォルトは 1 です。 NetBSD/x68k で X サーバを起動する場合のみ 1 にする必要があります。Specifies whether to cut MPU(68030) FC2 pin. -If 0, the FC2 pin is connected as usual. -If 1, it is disconnected. +If set to 0, no modification is applied +(the original FC2 pin is kept). +If set to 1, the FC2 pin is cut. The default is 1. Only if you run the X server on NetBSD/x68k, it needs to be 1._EOM_ @@ -1636,6 +1807,8 @@ config_item("xp-clock = value", < (LUNA Only) XP プロセッサのクロック数を MHz 単位で指定します。 デフォルトは 6.144 [MHz] です。 +Specifies the XP processor's clock in MHz. +The default value is 6.144 MHz._EOM_ ); @@ -1696,6 +1869,7 @@ SPC (MB89352) ◎ SCSI HD/CD/MO Devices ○ XP(HD647180) CPU △ XP(HD647180) Timer0/1 ○ +XP(HD647180) ASCI ○ XP(HD647180) その他の内蔵デバイスOther internal devices× XP 周辺デバイスPeripheral devices× 電源Power Circuit○ @@ -1711,13 +1885,14 @@ MPU (68030) ◎ 68EC030 は実装予定 FPU (68881) ◎ 68882 は未実装68882 not implementedMPU (68040) △ キャッシュ未実装、実行サイクル未考察 DMAC △ -CRTC/VC △ 768x512 のテキスト画面のみサポート Only 768x512 text screen supported+CRTC/VC △ 768x512 画面モードのみサポート Only 768x512 screen mode is supportedFDC/FDD ○ 標準・拡張エリアセットAreaset◎ -ADPCM/OPM × +ADPCM ○ フィルタ未実装、録音は実装予定なしFilter is not implemented. Recording is not planned+OPM × テキスト画面Text screen○ コントラスト Contrast◎ -グラフィック機能全般 All other graphics× 当面予定なしNot scheduled+グラフィック機能全般 All other graphics△ グラフィック画面(1024x1024 モード)、画面間プライオリティ(合成を除く)、 個別画面オンオフのみ実装。これ以外は当面予定なし。 Keyboard ◎ TVコントロールを除く Except TV ControlMouse ◎ 本体接続のみ MFP △ @@ -1761,7 +1936,7 @@ Goldfish TTY ○ VirtIO Block ○ VirtIO Network ○ VirtIO Entropy ◎ -VirtIO SCSI ○ +VirtIO SCSI ○ Power Control ○ __EOM__; @@ -1789,8 +1964,9 @@ __EOM__;-68030 ATC (アドレス変換キャッシュ) は実際の仕様とは異なり高速化してあります。 -@@ -1806,10 +1982,9 @@ FPU はある程度動作すると思い 68881 相当のハードウェアエミュレーションで実行出来てしまうという 通常あまり困らないタイプの問題は存分にあります。68030 ATC (Address Translation Cache) is differ from and faster than the real 68030.+MMU、キャッシュあたりはほぼ実装していると思います。 +命令の実行サイクルについてはある程度似せているつもりですが、 +68000 のようにサイクル数を正確に数えるのは困難です。
- 命令の実行サイクルについてはある程度似せているつもりですが、 そもそも 68040 はパイプライン方式なので 68000 時代のようにサイクル数を -正確にエミュレーションすることはおそらく不可能です。 +正確にエミュレーションすることはおそらく不可能です。
68040 は X68030 と virt-m68k でのみ選択可能です。 NEWS に 68040 搭載モデルはなさそうなのと、 @@ -1839,6 +2014,18 @@ Human68k を起動する場合はお手 + ++X68030 のグラフィック画面を一部実装しています。 +これにより NetBSD/x68k の標準設定の X サーバは起動します。 +グラフィック画面として実装しているのは 1024x1024 (16色) モードのみです。 +ビデオコントローラは、画面間プライオリティと画面オンオフを実装しており、 +テキスト画面とグラフィック画面の優先度を変更することは出来ます。 +ただし合成や半透明合成は未実装ですので実質切り替えられるだけです。 +スクロール等 CRTC の機能も未実装です。 ++ +NEWS エミュレーションは今の所 @@ -1871,20 +2058,62 @@ If you want to install, you also need to- +virt-m68k (や NEWS) のようにシリアルコンソールしか持たない機種のために、 メイン画面でシリアルコンソールの端末エミュレーションを実装してあります。 -hostcom-driver = cons とすることで nono のメイン画面に +hostcom-driver = console とすることで nono のメイン画面に シリアルコンソールの内容が表示されます。 -カラーは現状サポートしていませんが、 -ボールド、イタリック、下線などはある程度サポートしています。 + +概ね VT220 互換です。 +ただし倍角文字、背景色切り替え、タブ設定等サポートしてないものもあります。 +VT220 互換のためカラーはサポートしていません。 +132 桁モードをサポートしました。 +ブリンクをサポートしました。 +VT220 にはないイタリックはサポートしています。 + バックログはありませんので、バックログが必要なら stdio 等を使ってください。- +ディスクイメージDisk image"); ?> ++ +HD, CD, MO, FD 等のディスクイメージは QCOW2 形式と生イメージをサポート +しています。 +QCOW2 形式かどうかはヘッダのマジックで自動判別しますが、 +判別できないものはすべて生イメージとして扱います。 ++ + + +QCOW2 and raw format are supported for the disk images for +HD, CD, MO and FDs.+ ++ +QCOW2 形式のうち、外部バッキングファイル (CoW) を持つもの、 +zstd 圧縮されたもの、 +暗号化されているもの +は未対応です。 +また refcount が 16 ビットでないものも未対応ですが通常遭遇しないはず。 +イメージがスナップショットを持っている場合、 +スナップショットに関与せず最新の状態だけを読み書きします。 +イメージが zlib 圧縮されているものについては読み込み専用でのみ対応しています。 +書き込みは技術的には可能ですが仕組みを考えると嬉しくないので対応しません。 + +
+usermode ネットワークでは nono 自身が +NAT ルータ、DHCP サーバ、DNS サーバの機能を持ちます。 +ルータと DHCP サーバのアドレスはネットワークアドレス +1 (デフォルトでは 10.8.0.1)、 +DNS サーバのアドレスはネットワークアドレス +2 (デフォルトでは 10.8.0.2) です。 +IPv6 ルータのアドレスはネットワークアドレス +1 (デフォルトでは fd08::1)、 +DNS サーバのアドレスはネットワークアドレス +2 (デフォルトでは fd08::2) です。 ++ + +Nereid emulation on X68030現実の Nereid はイーサネット/メモリ/USB の複合拡張ボードで、 このうちメモリは、メインメモリの増設に使える他、 @@ -1946,21 +2175,9 @@ Also, SW8 specifies enable/disable of th- --usermode ネットワークでは nono 自身が -NAT ルータ、DHCP サーバ、DNS サーバの機能を持ちます。 -ルータと DHCP サーバのアドレスはネットワークアドレス +1 (デフォルトでは 10.8.0.1)、 -DNS サーバのアドレスはネットワークアドレス +2 (デフォルトでは 10.8.0.2) です。 -IPv6 ルータのアドレスはネットワークアドレス +1 (デフォルトでは fd08::1)、 -DNS サーバのアドレスはネットワークアドレス +2 (デフォルトでは fd08::2) です。 -- - Time Synchronization on NetBSD/x68k- X68030 でゲスト OS に NetBSD/x68k を使う場合、 nono と NetBSD/x68k を次の通りに設定すれば nono をフルスピード動作にしてもゲスト OS の時間がずれなくなります。 @@ -1990,7 +2207,6 @@ sysctl の設定によって、ゲスト /etc/rc.d/ntpdate start を実行してください) -@@ -2114,15 +2330,15 @@ LUNA-I なら m68k と HD64180 の逆ア LUNA-88K なら m88k と HD64180 の逆アセンブルが、 X68030/virt-m68k/NEWS なら m68k の逆アセンブルが選択できます。On memory dump monitor, -you can choose the output format from byte, word and longword +you can select the output format from byte, word and longword (In m88k, it is represented as byte, halfword and word respectively). -Also you can choose 68030/88200 MMU descriptor format +Also you can select 68030/88200 MMU descriptor format (It displays regardless of whether this address is used as descriptor or not). Disassemble is now merged from disassemble monitor. -On LUNA-I, you can choose m68k and HD64180 disassemble. -On LUNA-88K, you can choose m88k and HD64180 disassemble. +On LUNA-I, you can select m68k and HD64180 disassemble. +On LUNA-88K, you can select m88k and HD64180 disassemble. On X68030/virt-m68k/NEWS, -you can choose m68k disassemble.+you can select m68k disassemble.表示されているダンプ値をダブルクリックすることでメモリの値を編集できます。 編集できるのはメモリと以下の部分のみです。 @@ -2139,7 +2355,33 @@ The only last 8 bytes are not editable s
SRAM (X68030 Only) … 編集するとただちにファイルも更新します。 The backend file is also updated immediately when edited.-TVRAM とテキストパレット (X68030 Only) Text VRAM and text palette+TVRAM、GVRAM とパレット (X68030 Only) Text VRAM, Graphic VRAM and palette+ + + + +Page Table Monitor"); ?> ++68030 と 68040 のページテーブルを一覧できるモニタです。 +88200 は未対応です。 +68030 はバリエーションが多すぎるのですべてには対応していません。 +@@ -2524,7 +2766,7 @@ if the VM is running faster than the rea the key repeat will occur faster, too. The host application doesn't have the way to avoid it. Therefore, nono will temporarily suppress the full speed mode -while any keys are pressed. +while any keys are pressed on LUNA. That is why the above-mentioned icon distinguishes them. If keys continue to be pressed for some reasons, the VM also continues to run syncronized mode. @@ -2638,11 +2880,11 @@ and nono will terminate when the VM is p Try OpenBSD/luna88k"); ?>This is a page table monitor on 68030 and 68040. +It doesn't support 88200 yet. +It doesn't support all variations of 68030 because it's too complex.++
- 現状、段数は TIC までの3段階まで、FCL には未対応です。 +
Up to 3-levels (From TIA to TIC). No FCL supported.+- アーリーターミネーションと間接ディスクリプタは表示で区別していませんので +自身で判断してください。 +
An early termination and indirect descriptor are not distinguished +in the display.+- ルートポインタの切り替えは、68040 ではそのまま +SRP/URP レジスタの切り替えです。 +68030 では TC によって SRP/CRP の使い方が変わるため、 +SRP/CRP の切り替えではなく +スーパーバイザ状態/ユーザ状態でのルートポインタを選択します。 +
The root pointer switching on 68040 is SRP/URP as is. +On 68030, it switches supervisor-state/user-state.-あおやまさんが OpenBSD/luna88k 7.6 の liveimage を用意されています。 +あおやまさんが OpenBSD/luna88k 7.7 の liveimage を用意されています。Aoyama-san has provided a liveimage of OpenBSD/luna88k 7.6.ここではこれを起動してみます。Let's try it.
@@ -2653,10 +2895,10 @@ and nono will terminate when the VM is p and create subdirectories for individual VMs in it (for example ~/nono/luna88k/). -以下のリンクから liveimage-luna88k-raw-20241013.img.gz + 以下のリンクから liveimage-luna88k-raw-20250518.img.gz をダウンロードして展開し、 VM ディレクトリ ~/nono/luna88k/ に置きます。 - Download liveimage-luna88k-raw-20241013.img.gz from the following link, +Download liveimage-luna88k-raw-20250518.img.gz from the following link, extract it and place it in the VM directory, ~/nono/luna88k/.-初回のみ nono -c ~/nono/x68k --create-sram を実行します。 -これで VM ディレクトリに初期状態の SRAM.DAT が作られます。 - Only the first time, run as nono -c ~/nono/x68k --create-sram. -This will create an initial SRAM.DAT in the VM directory.- -nono -c ~/nono/x68k で起動すると、 -HDD から NetBSD/x68k が起動します。 -次回以降はこれだけで直接 NetBSD が起動します。 - Again, run as nono -c ~/nono/x68k. -NetBSD/x68k will be booted from HDD. -Next time, it will boot NetBSD automatically.+nono -c ~/nono/x68k で起動します +(VM ディレクトリに自動的に SRAM.DAT が作られます)。 + Run as nono -c ~/nono/x68k +(SRAM.DAT will be created automatically in the VM directory). -"); ?>初回起動後数時間はめちゃくちゃ重たいですが、 + 初回の NetBSD/x68k 起動後数時間はめちゃくちゃ重たいですが、 これはバックグラウンドで makemandb が動くためで nono のせいではありません(>_<)。 - At the first boot, you will feel it's too heavy for several hours. +"); ?>At the first NetBSD/x68k boot, +you will feel it's too heavy for several hours. This is because the infamous makemandb(8) runs heavily in the background for a looooong time. It's very sad to me that the accident which is far from the ideal @@ -2789,8 +3025,8 @@ and nono will terminate when the VM is p Try installing NetBSD/virt68k"); ?>-ここでは NetBSD/virt68k をクリーンインストールする手順だけ紹介します。 -@@ -3019,7 +3264,7 @@ In such case, you may need to upgrade it Included SoftwareHere I will introduce how to install NetBSD/virt68k cleanly.+ここでは NetBSD/virt68k 11.0_RC2 をインストールする手順を紹介します。 +Here I will introduce how to install NetBSD/virt68k 11.0_RC2.
@@ -2800,25 +3036,33 @@ and nono will terminate when the VM is p and create subdirectories for individual VMs in it (for example ~/nono/virt68k/). -
- NetBSD/virt68k のインストールセットはまだ用意されてないようなので、 -NetBSD のソースコードから build.sh でビルドします。 -
There doesn't seem to be the official NetBSD/virt68k set available yet. -You have to build it manually from the source code using build.sh. :(- -- インストーラを起動するカーネルとその後運用するカーネルは同じものなので -VM ディレクトリ内に持ってきておくとよいです。 -
The kernel used for installation and the kernel used for operation -are the same. -So it would be good idea to bring it into the VM directory at this point.-+-cp <path>/release/virt68k/binary/kernel/netbsd-GENERIC.gz ~/nono/virt68k/ -- NetBSD/virt68k を含む 11.0 は執筆時点ではまだリリースされていませんが、 +公式サイトに RC (Release Candidate) のイメージが公開されています。 +以下のリンクから netbsd-GENERIC.gz (カーネル) と +inst-ramdisk.fs (インストーライメージ) をダウンロードします。 +
As of the time of writing, +NetBSD 11.0 including virt68k has not yet been released. +However, images of RC (Release Candidate) are available on the official site. +Download netbsd-GENERIC.gz (kernel) and inst-ramdisk.fs +(installer image) from the following links.++https://cdn.netbsd.org/pub/NetBSD/NetBSD-11.0_RC2/virt68k/binary/kernel/netbsd-GENERIC.gz
+https://cdn.netbsd.org/pub/NetBSD/NetBSD-11.0_RC2/virt68k/installation/ramdisks/inst-ramdisk.fs +- 空のディスクイメージを用意します。 1GB でもインストール自体は出来ますが、もう少し大きいほうが安心です。 +(qemu-img がない場合は dd で生イメージを作ります)
Prepare an empty disk image file. You can install it with 1GB at least, -but it would be safer if it was a little larger.+but it would be safer if it was a little larger. +(If you doesn't have qemu-img, create a raw image by using dd instead.) +++qemu-img create -f qcow2 virt68k.qcow2 2G +or@@ -2829,21 +3073,22 @@ dd if=/dev/zero of=virt68k.img bs=1m cou with following contents.dd if=/dev/zero of=virt68k.img bs=1m count=2048-vmtype = virt-m68k +fast-mode = 1 +virtio-block0-image = virt68k.qcow2 # or virt68k.img exec-file = netbsd-GENERIC.gz exec-bootparam = root=ld0 -virtio-block0-image = virt68k.img -fast-mode = 1- インストーラ RAM ディスクを指定してインストーラを起動します。 -設定ファイルでルートデバイスを ld0 に指定していますが、 -RAM ディスク指定のほうが優先されるようです。 -
Run the installer by specifying installer RAM disk. -By the way, configuration file specifies root device as ld0, -but RAM disk specified by the command line will take precedence.+- インストーライメージからインストーラを起動します。 +設定ファイルでは運用時のためにルートデバイスを ld0 に指定していますが +インストーラは RAM ディスクから起動したいため -V +オプションで exec-bootparam を空に戻します。 +
Run installer from specified installer image. +The configuration file specifies root device as ld0 for normal operation, +but since we want to boot from ramdisk this time, +use the -V option to reset exec-bootparam.-nono -c ~/nono/virt68k \ - --initrd <path>/release/virt68k/installation/ramdisks/inst-ramdisk.fs +nono -c ~/nono/virt68k --initrd inst-ramdisk.fs -V exec-bootparam=- しばらくすると見慣れたインストーラが起動してきます。 @@ -2852,15 +3097,15 @@ g:Halt the system を選択してください。ゲストの電源がオフになり nono も終了します。
After a while, the familiar installer will start. Once the installation has finished, -choose e:Utility menu > g:Halt the system. +select e:Utility menu > g:Halt the system. Then the guest will shut down, and nono also will terminate.- インストールしたディスクから起動するには、 ---initrd オプションを外して実行します。 +--initrd と -V オプションを外して実行します。 カーネルは引き続きホストファイルシステム上にあるもの (ここでは ~/nono/virt68k/netbsd-GENERIC.gz) を使います。
To boot from the installed disk, -run without --initrd option. +run without --initrd and -V option. It still uses the kernel on the host filesystem, just like the installer does.@@ -3009,8 +3254,8 @@ wxWidgets 3.0 (with GTK2) can.Some versions may have incompatibilities in the configuration files, etc. In such case, you may need to upgrade it by referring the following link.@@ -3027,7 +3272,7 @@ In such case, you may need to upgrade it Changes-
- +
-See . +See .