<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>msyksphinz</author_name>
  <author_url>https://blog.hatena.ne.jp/msyksphinz/</author_url>
  <blog_title>FPGA開発日記</blog_title>
  <blog_url>https://msyksphinz.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>riscv-tests には 仮想アドレスをサポートするためのシンプルな実装がある。 env/v/vm.c に仮想アドレスをサポートするためのコードがある。 これを読み解いて、実際に仮想アドレスが有効になった場合の動作を解析していこう。 基本的に、 vm_boot()の流れを追いかけていく形になると思う。 まずは、ページテーブルの構築だろう。 以下のコードがメインになるだろうが、SATP_MODE_CHOISE == SATP_MODE_SV39 をベースに見ていこう。 // map user to lowermost megapage l1pt[0] = ((pte_t)user_l2pt …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmsyksphinz.hatenablog.com%2Fentry%2F2025%2F07%2F13%2F040000&quot; title=&quot;riscv-testsの仮想アドレスサポートのための実装を読み解く (1. テーブルの構成) - FPGA開発日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/m/msyksphinz/20250712/20250712022340.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-07-13 04:00:00</published>
  <title>riscv-testsの仮想アドレスサポートのための実装を読み解く (1. テーブルの構成)</title>
  <type>rich</type>
  <url>https://msyksphinz.hatenablog.com/entry/2025/07/13/040000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
