首页> 外国专利> Method for emulating multiple debug breakpoints by page partitioning using a single breakpoint register

Method for emulating multiple debug breakpoints by page partitioning using a single breakpoint register

机译:通过使用单个断点寄存器的页面分区来模拟多个调试断点的方法

摘要

A single breakpoint address register on a CPU is shared to emulate a plurality of breakpoint registers. A plurality of breakpoints are stored in an emulation area of main memory. One of these breakpoints is loaded into the single breakpoint register on the CPU. When a translation- lookaside buffer (TLB) on the CPU detects a page miss, a page miss handler activates a debug processing routine to determine if the faulting page contains one of the breakpoints. If the faulting page does contain a breakpoint, then this breakpoint is written to the single breakpoint register on the CPU. Any page in TLB is invalidated if it contained the old breakpoint that was overwritten by the new breakpoint in the single breakpoint register. Thus only one breakpoint can have a page translation in the TLB at any time, and the breakpoints are swapped in and out of single breakpoint register when the TLB entries are swapped. A TLB invalidate entry instruction finds the old breakpoint's TLB entry and invalidates it. When multiple breakpoints exist on a single page, then that page is divided into partial pages, with each partial page having just one breakpoint. The TLB entries contain upper and lower bounds fields to identify the extent of the partial page. A bit in the condition register is set when multiple breakpoints exist on the same page.
机译:CPU上的单个断点地址寄存器被共享以模拟多个断点寄存器。多个断点存储在主存储器的仿真区域中。这些断点之一被加载到CPU上的单个断点寄存器中。当CPU上的转换后备缓冲区(TLB)检测到页面丢失时,页面丢失处理程序将激活调试处理例程,以确定故障页面是否包含断点之一。如果故障页面的确包含断点,则将该断点写入CPU上的单个断点寄存器。如果TLB中的任何页面包含单个断点寄存器中的新断点覆盖的旧断点,则该页面将无效。因此,任何时候在TLB中只有一个断点可以进行页面转换,并且在交换TLB条目时,可以在单个断点寄存器中交换断点。 TLB无效条目指令查找旧断点的TLB条目并使之无效。当单个页面上存在多个断点时,该页面将分为部分页面,每个部分页面只有一个断点。 TLB条目包含上限和下限字段,以标识部分页面的范围。当同一页面上存在多个断点时,条件寄存器中的某位置1。

著录项

  • 公开/公告号US5664159A

    专利类型

  • 公开/公告日1997-09-02

    原文格式PDF

  • 申请/专利权人 EXPONENTIAL TECHNOLOGY INC.;

    申请/专利号US19950436136

  • 发明设计人 JAMES S. BLOMGREN;DAVID E. RICHTER;

    申请日1995-05-08

  • 分类号G06F12/10;

  • 国家 US

  • 入库时间 2022-08-22 03:09:28

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号