Forums: Help (Thread #6909)

SH-2EなどのFPUに対応する方法について (2005-02-07 02:49 by Anonymous #12766)

HOSの環境でSH-2E(SH7055,SH7058)のFPUを使用したいのですが可能でしょうか。

Reply to #12766×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: SH-2EなどのFPUに対応する方法について (2005-02-07 07:07 by m-arai #12768)

FPUのレジスタ保存/復帰に関して全くケアしていないので、
一般に可能かと問われれば、それは不可能という答えに
なるかと思います。

コンパイラの仕様を調べ、コンテキストスイッチに
サブルーチンコールで保証しなければならないFPUレジスタの、
割込みハンドラにそれ以外のFPUレジスタの保存/復帰を
加える必要があるでしょう。
Reply to #12766

Reply to #12768×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: SH-2EなどのFPUに対応する方法について (2005-02-07 13:26 by Anonymous #12772)

早速の回答ありがとうございます。
ちょっと不安ですが、チャレンジしてみます。


Reply to #12766

Reply to #12772×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: SH-2EなどのFPUに対応する方法について (2005-02-07 18:41 by m-arai #12774)

頑張って下さい。


ところで、「一般に」という答えだと前述のような改造が
必要となりますが、ある程度の前提条件が付くならば
現状のままで問題無く使用が可能であるかもしれません。

即ち、
「同時にはただ一つのコンテキストのみしかFPUを使用しない
ことを保証」できるのであれば、おそらく大丈夫でしょう。
プログラム、コンパイラ次第で、そのような保証は可能だと
思います。

FPUレジスタ保存の追加は、そのままコンテキストスイッチ
や割込み応答速度低下に繋がりますし、当然スタック領域
も食いますので、やらないで済むならそれに越したことは
ありません。
Reply to #12772

Reply to #12774×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: ありがとうございます、SH-2EなどのFPUに対応する方法について (2005-02-07 19:14 by Anonymous #12775)

アドバイスありがとうございます。

全体のパフォーマンスを考慮すると条件にもよりますがあまり効果ないでしょうか。
セマフォで排他的に使用するのも変ですよね。
モジュールごとに、FPUとエミュレーションが混在できれば良いのですが。
Reply to #12766

Reply to #12775×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login