Support for composite RBF.

This commit is contained in:
sorgelig
2018-09-29 15:58:23 +08:00
parent f65385d308
commit e7429ec866
4 changed files with 54 additions and 25 deletions

View File

@@ -491,6 +491,13 @@ int fpga_load_rbf(const char *name, const char *cfg)
}
else
{
void *p = buf;
__off64_t sz = st.st_size;
if (!memcmp(buf, "MiSTer", 6))
{
sz = *(uint32_t*)(((uint8_t*)buf) + 12);
p = (void*)(((uint8_t*)buf) + 16);
}
do_bridge(0);
ret = socfpga_load(buf, st.st_size);
if (ret)