<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2017-06-05 0:14 GMT+03:00 Hesham Almatary <span dir="ltr"><<a href="mailto:heshamelmatary@gmail.com" target="_blank">heshamelmatary@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Denis,<br>
<br>
Yes, the Host-Target-Interface (HTIF) has been refactored/removed in<br>
RISC-V. Also, it was meant to work with riscv front-end server<br>
(riscv-fesvr) which is not the case for your HiFive BSP I guess.<br>
<br>
I believe now it's the good time for you to start creating your own<br>
HiFive BSP. You'll have to read/know how to output data over the<br>
HiFive serial port or so, and develop your own console driver for the<br>
board. You might find this link useful [1] when creating a new BSP,<br>
and also use other BSPs as a reference (e.g. riscv_generic). Main<br>
things to be aware of when creating a new BSP are: 1) startup code, 2)<br>
console driver, and 3) timer driver. To make things easier for you,<br>
and to give you credit for your contributions when merged upstream,<br>
you'd want to create a new branch for your HiFive BSP based on<br>
priv-1.10, and rebase against it when/if I make changes to it.<br>
<br>
Keep the good work up.<br>
<br>
[1] <a href="https://devel.rtems.org/wiki/TBR/UserManual/Submitting_a_BSP" rel="noreferrer" target="_blank">https://devel.rtems.org/wiki/<wbr>TBR/UserManual/Submitting_a_<wbr>BSP</a><br>
<br>
Best,<br>
Hesham<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Jun 5, 2017 at 7:00 AM, Denis Obrezkov <<a href="mailto:denisobrezkov@gmail.com">denisobrezkov@gmail.com</a>> wrote:<br>
> 2017-06-04 16:17 GMT+03:00 Denis Obrezkov <<a href="mailto:denisobrezkov@gmail.com">denisobrezkov@gmail.com</a>>:<br>
>><br>
>> Now I have a problem with console-io.c file.<br>
>> The problem is with csr macros - there is no more such a register<br>
>> "tohost".<br>
>> Here it is described a little:<br>
>> <a href="https://github.com/riscv/riscv-pk/issues/25" rel="noreferrer" target="_blank">https://github.com/riscv/<wbr>riscv-pk/issues/25</a><br>
>><br>
>> Could you explain what should be done here and what for was mtohost<br>
>> register?<br>
>><br>
><br>
> I have built riscv-generic bsp. Though there are a lot of warnings.<br>
> The current issue is that asm functions should be reimplemented (there is no<br>
> more<br>
> such a register 'mtohost' in csr).<br>
><br>
> --<br>
> Regards, Denis Obrezkov<br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Hesham<br></font></span></blockquote><div> </div></div>Thanks Hasham,</div><div class="gmail_extra">will you be able to fix these asm functions to make BSP work in SPIKE simulator?<br><br>Could you also point me to the good reference on risc-v assembler and about </div><div class="gmail_extra">assembler writing in general (for RISC) - I am not really good in it. <br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Regards, Denis Obrezkov</div>
</div></div>