Download coreboot source and look inside.
Also, I think this is axplained within AMD's BIOS and Kernel Guide.
Basically, it boils down that CPU can use caches as RAM until it sets memory controllers and initialise RAM. It's called CAR ( Cache as RAM) mode AFAIK