Here is how you can set up a simulated RISC-V Debian environment on an existing Debian or Ubuntu system (as at November 2018). You will probably have to apt-get some extra packages along the way.
Firstly, make a new empty directory and set the TOP environment variable to be the full pathname of this directory: