Commit debee53b authored by Maxime Perrotin's avatar Maxime Perrotin

Revert "Add init_Brave_Fpga on request from GMV"

This reverts commit 0ad7c8f3.
parent 0ad7c8f3
......@@ -104,11 +104,6 @@ void c_preamble(FV * fv)
" if (!init) {\n"
" init = 1;\n");
if (brave_fpga) {
fprintf(vm_if,
" init_%s_Brave_Fpga();\n", fv->name);
}
/* Call the user-defined startup function (or GUI startup)
* Except for Ada functions - that have startup in elaboration */
if (ada != fv->language && qgenada != fv->language && qgenc != fv->language) {
......@@ -570,18 +565,6 @@ void add_RI_to_c_invoke_ri(Interface * i)
fprintf(invoke_ri, ");\n\n");
} else {
// Set a boolean to allow skipping all the encoding section and make
// a direct call to the other end in case of (un)protected calls when
// all parameters are encoded natively. This saves buffer space.
bool sync_and_native = (asynch != i->synchronism);
FOREACH (p, Parameter, i->in, {
if(native != p->encoding) sync_and_native = false;
});
FOREACH (p, Parameter, i->out, {
if(native != p->encoding) sync_and_native = false;
});
if (!sync_and_native) {
/* d. For each IN and OUT params, declare a static buffer to put encoded data */
if (NULL != i->in) {
......@@ -645,11 +628,7 @@ void add_RI_to_c_invoke_ri(Interface * i)
i->parent_fv->name,
i->name);
});
}
else {
fprintf(invoke_ri,
" // Native encoding and synchronous RI, send parameters as is\n\n");
}
/* f. Add a call to the vm callback function passing the encoded
* inputs as parameters */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment