Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    D1 RISC-V dcache.cva 指令编译不过,求助大神指导

    MR Series
    2
    4
    2846
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      Zt940508 LV 3 last edited by

      error: unrecognized instruction mnemonic
      asm volatile ("dcache.cva a0");
      <inline asm>:1:2: note: instantiated into assembly here
      dcache.cva a0

      R 1 Reply Last reply Reply Quote Share 0
      • R
        riturbo LV 5 @Zt940508 last edited by

        @zt940508 这是平头哥扩展指令,得用他们提供的编译器吧

        Z 1 Reply Last reply Reply Quote Share 0
        • Z
          Zt940508 LV 3 @riturbo last edited by

          @riturbo for (; i < end; i += CACHE_ALIGNED_SIZE)
          asm volatile(".long 0x0295000b"); 用通用编译器,这种命令能实现相同的效果么?我看tina上有这种命令格式

          R 1 Reply Last reply Reply Quote Share 0
          • R
            riturbo LV 5 @Zt940508 last edited by

            @zt940508 @zt940508 看起来可以。直接把对应指令机器码放进去。

            1 Reply Last reply Reply Quote Share 0
            • 1 / 1
            • First post
              Last post

            Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

            行为准则 | 用户协议 | 隐私权政策