The emulator code itself is entirely legal. For his most precise audio emulation, Dolphin needs a DSP dropped from a Wii. Downloading is unlawful; however, it is legal to dump from your own modded Wii.