MIPS错误的MARS仿真器:地址超出范围0x20000000

时间:2020-09-24 18:07:09

标签: mips

我不确定我在哪里搞砸,但是我正在将MARS仿真器用于MIPS,并且在我的操作中遇到了错误

class BlogPost(models.Model): # blogpost_set -> queryset # id = models.IntegerField() # pk user = models.ForeignKey(User, default=1, null=True, on_delete=models.SET_NULL) image = models.ImageField(upload_to='image/', blank=True, null=True, height_field='height_field', width_field='width_field') height_field = models.PositiveIntegerField(default=0) width_field = models.PositiveIntegerField(default=0) title = models.CharField(max_length=120) slug = models.SlugField(unique=True) # hello world -> hello-world content = MDTextField(default=' ') # content = models.TextField(null=True, blank=True) publish_date = models.DateTimeField(auto_now=False, auto_now_add=False, null=True, blank=True) timestamp = models.DateTimeField(auto_now_add=True) updated = models.DateTimeField(auto_now=True) category = models.CharField(max_length=255, default='issue') private = models.BooleanField(default = False) tags = TaggableManager() objects = BlogPostManager() 行。

这是我的错误:

<article class="blog-item heading_space wow fadeIn text-center text-md-left" data-wow-delay="300ms">
    <div class="image"> <img src="{{ blog_post.image.url }}" alt="blog" class="border_radius"></div>
    <h3 class="darkcolor font-light bottom10 top30"> <a href="{{ blog_post.get_absolute_url }}">{{ blog_post.title|capfirst }}</a></h3>
    <ul class="commment">
        <li><a href="#."><i class="fas fa-calendar"></i>{{ blog_post.publish_date }}</a></li>
        <!-- <li><a href="#."><i class="fas fa-comments"></i></a></li> -->
        <li><a href="#."><i class="fas fa-user"></i>{{ blog_post.user }}</a></li>
    </ul>
    <!-- <p class="top15">blog_post.content|linebreaks|truncatewords:50</p> -->
    <div id="content"><textarea>{{blog_post.content}}</textarea>
    </div>
</article>
lw $s6, 0($s7) #s6 now holds c[i]

1 个答案:

答案 0 :(得分:0)

我解决了这个问题,原来我需要一个低一些的地址才能使其成为堆的一部分。 MARS堆从0x10040000开始并向上移动。

我将0x2000更改为0x1005,并且可以在MARS中使用