There were some games that manually implemented their own virtual memory paging system to map the cartridge ROM to RAM address space.
But, in general a feature that distinguished the N64 from the PS1 was that it had a single, unified block of RAM for all of the hardware to share however you like.
> Differing memory countings are due to the 9th bit only being available to the RCP for tasks such as anti-aliasing or Z-buffering.
afaik there is no way of manually using this ram, its hardwired to fixed function pipeline stages of RCP.
But because of that you might be able to use it for extra sort of like how the Factor 5 GC games would spill out to ARAM.
A lot of work for 4k of RAM though.
It seems that this actually requires using the Expansion Pak as system RAM to even run.
[0] https://github.com/clbr/n64bootloader/tree/master/n64linux
The texture memory would be difficult to use as RAM though since it's not directly addressable.
That's one of the major reasons the N64 has a reputation for being 'blurry'. 4k gives you a max of (with mip maps) one 32x32 16-bit texture at a time.