On 10 March 2016 at 07:23, Aurelio Remonda <aurelio.remo...@tallertechnologies.com> wrote: > > El 9 mar. 2016 8:25 PM, "Peter Maydell" <peter.mayd...@linaro.org> escribió: >> You should reject unworkable ram sizes rather than silently >> changing what the user asked for; this matches our preferred >> approach where the user asks for more RAM than the board >> can support. > > With unworkable you mean RAM values over dc0 máximum? I make sure that it > does not exceed 0xffff before i replace the dc0 value so if it goes over 16M > the program report the problem (via error_report()) and exit.
Also if the user asks for a non-round-number ram size: don't round ram_size up or down, just fail if the user asked for something that's not representable in a dc0 value. thanks -- PMM