You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b07aec9
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: core/cpu-68080/core-at-a-glance.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ statement wins.
36
36
| Pipes | PRM: 3 (Anton, Bruno, Cesar). **2 enabled on Core 12798-12841** (M): IEP3 always reads 0. A third pipe comes in a future core (G) |
37
37
| Decoders | 3. Only the first takes multi-cycle instructions (mul, div, movem, bitfields, FPU) and addx/subx/negx, which need the flags of the previous instruction |
38
38
| I-cache | 32 KB, **64-byte line** (G, 2026-10-29). Feeds the decoders **16 bytes per cycle**; a group of instructions that run together is at most 16 bytes (some I-cache variants: 18) (G, 2026-11-03), see [execution-units.md](execution-units.md). Few ways on Core 12841 (G); the number of ways is a build option: 4, 2 or 1 (G, 2026-10-30). Note the core build with every measurement |
39
-
| D-cache | 128 KB, **64-byte line** (G, 2026-10-29; M). **1 read and 1 write per cycle** (G, 2026-11-03): `add.l #1,mem` runs at about 1 per cycle. One memory address per cycle, so an instruction with two memory operands needs more than one |
39
+
| D-cache | 128 KB, **64-byte line** (G, 2026-10-29; M). **1 read and 1 write per cycle** (G, 2026-11-03): `add.l #1,mem` runs at about 1 per cycle; measured with `dbra` on Core 12556: 2 cycles per iteration (M). One memory address per cycle, so an instruction with two memory operands needs more than one |
40
40
| Bus and memory | Memory controller 128-bit from Core 12600, 64-bit before (G, 2026-11-04). 64-byte bursts (one cache line), about 12 cycles latency, automatic prefetch of sequential streams |
41
41
| Branch cache | 1024-entry BTC, a loop predictor, and a return cache for rts/rtd/rtr |
42
42
| MMU | None. PMMU and cp4–cp6 opcodes are illegal (`lpstop` remains) |
- Compile **and** link everything with the same flags, including `-m68881`:
52
53
the standard set is in [c-compiler-options.md](../c-compiler-options.md).
54
+
- A program built for soft-float on purpose links with `-lm`: libnix keeps
55
+
`__mulsf3` and the other soft-float routines in its `libm` (M).
53
56
- Keep library code (`-nostartfiles`) integer (fixed point), and check its
54
57
objects for soft-float symbols.
55
58
- Write FPU kernels in assembler when you need full control over the FPU
@@ -90,3 +93,4 @@ float scale(float a, float b) { return a * b; }
90
93
| No 680x0 CPU option sets the FPU flag for AmigaOS; `-m68881` sets hard float explicitly | (SRC) | any | GCC source, `m68k.c`|
91
94
|`-m68080` objects with libnix `printf` printed garbage doubles | (M) | any | MP3 project |
92
95
| Soft-float in a `-nostartfiles` library crashed with a CHK error | (M) | any | MP3 library, ReplayGain path |
96
+
|`-m68080 -m68881` runs FPU code on a V4: 8 cycles per element of a float dot product, 63 with `-m68080` alone | (M) | Core 12556 |`tools/v4/tests/fpu-m68881`, V4 UniCorn, 3 alternating rounds, 2026-11-09 |
0 commit comments