When SMP first came out we had one large customer that wanted to manually handle scheduling themselves. That didn’t last long.
There was briefly a product called vCage loading a whole secure hypervisor into cache-as-RAM, with a goal of being secure against DRAM-remanence ("cold-boot") attacks where the DIMMs are fast-chilled to slow charge leakage and removed from the target system to dump their contents. Since the whole secure perimeter was on-die in the CPU, it could use memory encryption to treat the DRAM as untrusted.
So, yeah, you can do it. It's funky.
• 2Kbit SRAM Cache Memory for 15ns Random Reads Within a Page
• Fast 4Mbit DRAM Array for 35ns Access to Any New Page
• Write Posting Register for 15ns Random Writes and Burst Writes Within a Page (Hit or Miss)
• 256-byte Wide DRAM to SRAM Bus for 7.3 Gigabytes/Sec Cache Fill
• On-chip Cache Hit/Miss Comparators Maintain Cache Coherency on Writes
Afaik only ever manufactured by a single vendor Ramtron https://bitsavers.computerhistory.org/components/ramtron/_da... and only ever used in two products:
- Mylex DAC960 RAID controller
- Octek HIPPO DCA II 486-33 PC motherboard https://theretroweb.com/motherboards/s/octek-hippo-dca-ii-48...